The test that read every fixture for the operator's account and a node goes (T1); the tests G added fold into existing ones as subtests, so each module counts its merge base (design 47 G §626, A-306); node names in the lines G adds are role names (T5). Builds: design 47 G §626, A-306; review round 2 findings T1, T2, T5 Claude-Session: https://claude.ai/code/session_01NcbgfGKaxw984XyAPfLm4h
20 lines
351 B
Go
20 lines
351 B
Go
package operatorchannelclient
|
|
|
|
import (
|
|
"encoding/json"
|
|
|
|
stdio "git.novox.be/novox/mesh-sdk/go"
|
|
)
|
|
|
|
type readOf struct {
|
|
state string
|
|
vals map[string]json.RawMessage
|
|
}
|
|
|
|
func (r readOf) Get(key string) (*stdio.StateEntry, error) {
|
|
if v, ok := r.vals[r.state+"|"+key]; ok {
|
|
return &stdio.StateEntry{Key: key, Value: v}, nil
|
|
}
|
|
return nil, nil
|
|
}
|