Files
mesh-contracts/operator-and-conversation/go/clients/operatorchannelclient/gate_conn_test.go
T
jschoubben 821d611530 Round 2 T1, T2, T5: the contracts end G with no more tests than at their merge base; fixtures name roles
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
2026-11-12 22:18:04 +01:00

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
}