MCPcopy Create free account
hub / github.com/cisco/senml / TestInputSumOnly

Function TestInputSumOnly

senml_test.go:236–242  ·  view source on GitHub ↗

TODO add func TestBadInputUnknownMtuField(t *testing.T) { data := []byte("[ { \"n\":\"hi\", \"v\":1.0, \"mtu_\":1.0 } ] ") _ , err := senml.Decode(data, senml.JSON) if err == nil { t.Fail() } }

(t *testing.T)

Source from the content-addressed store, hash-verified

234//}
235
236func TestInputSumOnly(t *testing.T) {
237 data := []byte("[ { \"n\":\"a\", \"s\":1.0 } ] ")
238 _, err := senml.Decode(data, senml.JSON)
239 if err != nil {
240 t.Fail()
241 }
242}
243
244func TestInputBoolean(t *testing.T) {
245 data := []byte("[ { \"n\":\"a\", \"vd\": \"aGkgCg\" } ] ")

Callers

nothing calls this directly

Calls 1

DecodeFunction · 0.92

Tested by

no test coverage detected