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

Function TestEmptyArrayIsDeterministic

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

Source from the content-addressed store, hash-verified

190}
191
192func TestEmptyArrayIsDeterministic(t *testing.T) {
193 if err := Deterministic([]byte{toCborHeader(TypeArray, 0)}); err != nil {
194 t.Error("Empty array should not return false for deterministicy.")
195 }
196}
197
198func TestLongArrayIsDeterministic(t *testing.T) {
199 const numOfItems = 24

Callers

nothing calls this directly

Calls 2

DeterministicFunction · 0.85
toCborHeaderFunction · 0.85

Tested by

no test coverage detected