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

Function TestBundleInvalidData2

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

Source from the content-addressed store, hash-verified

159}
160
161func TestBundleInvalidData2(t *testing.T) {
162 root := GenerateKey()
163 bundle, err := SignBundle([]byte("blah"), root)
164 assert.NoError(t, err)
165 pub := root.Pubkey()
166 bundle, err = SealBundle(bundle, pub[:])
167 assert.NoError(t, err)
168
169 _, err = UnbundleConfig(base64.StdEncoding.EncodeToString(bundle), root.Pubkey())
170 assert.Error(t, err)
171}

Callers

nothing calls this directly

Calls 6

GenerateKeyFunction · 0.85
SignBundleFunction · 0.85
SealBundleFunction · 0.85
UnbundleConfigFunction · 0.85
PubkeyMethod · 0.80
ErrorMethod · 0.45

Tested by

no test coverage detected