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

Function TestBadInputNumericName

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

Source from the content-addressed store, hash-verified

185}
186
187func TestBadInputNumericName(t *testing.T) {
188 data := []byte(" [ { \"n\":\"-3b\", \"v\":1.0 } ] ")
189 _, err := senml.Decode(data, senml.JSON)
190 if err == nil {
191 t.Fail()
192 }
193}
194
195func TestInputWeirdName(t *testing.T) {
196 data := []byte(" [ { \"n\":\"Az3-:./_\", \"v\":1.0 } ] ")

Callers

nothing calls this directly

Calls 1

DecodeFunction · 0.92

Tested by

no test coverage detected