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

Function TestInputBoolean

senml_test.go:244–250  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

242}
243
244func TestInputBoolean(t *testing.T) {
245 data := []byte("[ { \"n\":\"a\", \"vd\": \"aGkgCg\" } ] ")
246 _, err := senml.Decode(data, senml.JSON)
247 if err != nil {
248 t.Fail()
249 }
250}
251
252func TestInputData(t *testing.T) {
253 data := []byte(" [ { \"n\":\"a\", \"vb\": true } ] ")

Callers

nothing calls this directly

Calls 1

DecodeFunction · 0.92

Tested by

no test coverage detected