MCPcopy Create free account
hub / github.com/chanify/chanify / TestTryFormMap

Function TestTryFormMap

core/msgparam_test.go:47–54  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

45}
46
47func TestTryFormMap(t *testing.T) {
48 items := []*model.MsgTimeItem{
49 {Name: "123", Value: 456},
50 }
51 if len(tryFormMap(nil, "test", items)) != len(items) {
52 t.Error("Try form map failed!")
53 }
54}
55
56func TestParseTimestamp(t *testing.T) {
57 tm := time.Unix(1620000000, 123000000)

Callers

nothing calls this directly

Calls 1

tryFormMapFunction · 0.85

Tested by

no test coverage detected