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

Function TestBadInputNumericBaseName

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

Source from the content-addressed store, hash-verified

217}
218
219func TestBadInputNumericBaseName(t *testing.T) {
220 data := []byte("[ { \"bn\": \"/3h\" , \"n\":\"i\" , \"v\":1.0} ] ")
221 _, err := senml.Decode(data, senml.JSON)
222 if err == nil {
223 t.Fail()
224 }
225}
226
227// TODO add
228//func TestBadInputUnknownMtuField(t *testing.T) {

Callers

nothing calls this directly

Calls 1

DecodeFunction · 0.92

Tested by

no test coverage detected