(t *testing.T)
| 151 | } |
| 152 | |
| 153 | func TestB2BundleWithSpecifiedManifestURLShouldFail(t *testing.T) { |
| 154 | bundle := createTestBundle(t, version.VersionB2) |
| 155 | bundle.ManifestURL = urlMustParse("https://bundle.example.com/manifest") |
| 156 | var buf bytes.Buffer |
| 157 | _, err := bundle.WriteTo(&buf) |
| 158 | if err == nil || err.Error() != "This version of the WebBundle does not support storing manifest URL." { |
| 159 | t.Errorf("Bundle write should fail as version B2 does not support manifest URL.") |
| 160 | } |
| 161 | } |
nothing calls this directly
no test coverage detected