MCPcopy Create free account
hub / github.com/encodeous/nylon / TestBundleInvalidData1

Function TestBundleInvalidData1

state/distribution_test.go:154–159  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

152}
153
154func TestBundleInvalidData1(t *testing.T) {
155 root := GenerateKey()
156 bundle := base64.StdEncoding.EncodeToString([]byte("blah"))
157 _, err := UnbundleConfig(bundle, root.Pubkey())
158 assert.ErrorContains(t, err, "invalid bundle, too small")
159}
160
161func TestBundleInvalidData2(t *testing.T) {
162 root := GenerateKey()

Callers

nothing calls this directly

Calls 3

GenerateKeyFunction · 0.85
UnbundleConfigFunction · 0.85
PubkeyMethod · 0.80

Tested by

no test coverage detected