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

Function TestInputNumericName

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

Source from the content-addressed store, hash-verified

177}
178
179func TestInputNumericName(t *testing.T) {
180 data := []byte(" [ { \"n\":\"3a\", \"v\":1.0 } ] ")
181 _, err := senml.Decode(data, senml.JSON)
182 if err != nil {
183 t.Fail()
184 }
185}
186
187func TestBadInputNumericName(t *testing.T) {
188 data := []byte(" [ { \"n\":\"-3b\", \"v\":1.0 } ] ")

Callers

nothing calls this directly

Calls 1

DecodeFunction · 0.92

Tested by

no test coverage detected