MCPcopy Create free account
hub / github.com/monitoror/monitoror / TestStruct

Function TestStruct

pkg/nonempty/nonempty_test.go:141–146  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

139}
140
141func TestStruct(t *testing.T) {
142 var a, b, c, d Data
143 a, b, d = Data{"a", 10}, Data{"b", 10}, Data{"d", 30}
144 assert.Equal(t, a, Struct(a, b))
145 assert.Equal(t, d, Struct(c, d))
146}

Callers

nothing calls this directly

Calls 1

StructFunction · 0.70

Tested by

no test coverage detected