MCPcopy Create free account
hub / github.com/WICG/webpackage / TestEmptyByteArrayIsDeterministic

Function TestEmptyByteArrayIsDeterministic

go/internal/cbor/deterministic_test.go:82–86  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

80}
81
82func TestEmptyByteArrayIsDeterministic(t *testing.T) {
83 if err := Deterministic([]byte{}); err != nil {
84 t.Error("Empty byte array should return true.")
85 }
86}
87
88func TestUnsupportedAdditionalInformationValues(t *testing.T) {
89 notSupportedStartBytes := []byte{0x1C, 0x1D, 0x1E /*AdditionalInfoReserved*/, 0x1F /*AdditionalInfoInfinite*/}

Callers

nothing calls this directly

Calls 1

DeterministicFunction · 0.85

Tested by

no test coverage detected