(t *testing.T)
| 159 | } |
| 160 | |
| 161 | func 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 | } |
nothing calls this directly
no test coverage detected