Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
48af235c2f |
@@ -1190,13 +1190,13 @@ func TestCheckURLManifestWithoutTempDirectory(t *testing.T) {
|
|||||||
assert.Equal(t, 0, runCLI(opts), "stderr: %s", testStderr(t, opts))
|
assert.Equal(t, 0, runCLI(opts), "stderr: %s", testStderr(t, opts))
|
||||||
}
|
}
|
||||||
|
|
||||||
// TestCheckNeverReportsIndexMFAtTopOfBase checks a tree holding index.mf at
|
// TestCheckNeverReportsIndexMfAtTopOfBase checks a tree holding index.mf at
|
||||||
// its top, where gen and fetch write the manifest, against a manifest that
|
// its top, where gen and fetch write the manifest, against a manifest that
|
||||||
// does not list it, given by URL and by a path outside the tree: check never
|
// does not list it, given by URL and by a path outside the tree: check never
|
||||||
// reports it, and passes with and without --no-extra-files. index.mf in a
|
// reports it, and passes with and without --no-extra-files. index.mf in a
|
||||||
// subdirectory, and the temp file fetch saves index.mf through, are still
|
// subdirectory, and the temp file fetch saves index.mf through, are still
|
||||||
// reported.
|
// reported.
|
||||||
func TestCheckNeverReportsIndexMFAtTopOfBase(t *testing.T) {
|
func TestCheckNeverReportsIndexMfAtTopOfBase(t *testing.T) {
|
||||||
t.Parallel()
|
t.Parallel()
|
||||||
|
|
||||||
files := map[string][]byte{testFileTxt: []byte("hello")}
|
files := map[string][]byte{testFileTxt: []byte("hello")}
|
||||||
@@ -1239,7 +1239,7 @@ func TestCheckNeverReportsIndexMFAtTopOfBase(t *testing.T) {
|
|||||||
assert.NotContains(t, stderr, "EXTRA: "+defaultManifestName)
|
assert.NotContains(t, stderr, "EXTRA: "+defaultManifestName)
|
||||||
|
|
||||||
reported := []string{
|
reported := []string{
|
||||||
testSubdirManifest,
|
testSubdir + "/" + defaultManifestName,
|
||||||
tempPathFor(defaultManifestName),
|
tempPathFor(defaultManifestName),
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1261,10 +1261,10 @@ func TestCheckNeverReportsIndexMFAtTopOfBase(t *testing.T) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TestCheckChecksListedIndexMF checks a tree against a manifest that lists
|
// TestCheckChecksListedIndexMf checks a tree against a manifest that lists
|
||||||
// index.mf at the top of the tree, where that file has changed since: check
|
// index.mf at the top of the tree, where that file has changed since: check
|
||||||
// reports it like any other changed file.
|
// reports it like any other changed file.
|
||||||
func TestCheckChecksListedIndexMF(t *testing.T) {
|
func TestCheckChecksListedIndexMf(t *testing.T) {
|
||||||
t.Parallel()
|
t.Parallel()
|
||||||
|
|
||||||
manifestPath := filepath.Join(t.TempDir(), "other.mf")
|
manifestPath := filepath.Join(t.TempDir(), "other.mf")
|
||||||
@@ -1331,11 +1331,11 @@ func TestCheckWithUnlistableDirectory(t *testing.T) {
|
|||||||
assert.Contains(t, testStderr(t, opts), "unlisted.txt")
|
assert.Contains(t, testStderr(t, opts), "unlisted.txt")
|
||||||
}
|
}
|
||||||
|
|
||||||
// TestCheckReportsUnreadableIndexMFAtTopOfBase has a directory named
|
// TestCheckReportsUnreadableIndexMfAtTopOfBase has a directory named
|
||||||
// index.mf at the top of the base that cannot be listed. check leaves out
|
// index.mf at the top of the base that cannot be listed. check leaves out
|
||||||
// only the report that index.mf is not in the manifest, so it reports the
|
// only the report that index.mf is not in the manifest, so it reports the
|
||||||
// error and fails under --no-extra-files.
|
// error and fails under --no-extra-files.
|
||||||
func TestCheckReportsUnreadableIndexMFAtTopOfBase(t *testing.T) {
|
func TestCheckReportsUnreadableIndexMfAtTopOfBase(t *testing.T) {
|
||||||
t.Parallel()
|
t.Parallel()
|
||||||
|
|
||||||
unreadable := filepath.Join(testDir, defaultManifestName)
|
unreadable := filepath.Join(testDir, defaultManifestName)
|
||||||
|
|||||||
Reference in New Issue
Block a user