Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
edab668a20 |
@@ -1190,13 +1190,13 @@ func TestCheckURLManifestWithoutTempDirectory(t *testing.T) {
|
||||
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
|
||||
// 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
|
||||
// subdirectory, and the temp file fetch saves index.mf through, are still
|
||||
// reported.
|
||||
func TestCheckNeverReportsIndexMfAtTopOfBase(t *testing.T) {
|
||||
func TestCheckNeverReportsIndexMFAtTopOfBase(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
files := map[string][]byte{testFileTxt: []byte("hello")}
|
||||
@@ -1239,7 +1239,7 @@ func TestCheckNeverReportsIndexMfAtTopOfBase(t *testing.T) {
|
||||
assert.NotContains(t, stderr, "EXTRA: "+defaultManifestName)
|
||||
|
||||
reported := []string{
|
||||
testSubdir + "/" + defaultManifestName,
|
||||
testSubdirManifest,
|
||||
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
|
||||
// reports it like any other changed file.
|
||||
func TestCheckChecksListedIndexMf(t *testing.T) {
|
||||
func TestCheckChecksListedIndexMF(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
manifestPath := filepath.Join(t.TempDir(), "other.mf")
|
||||
@@ -1331,11 +1331,11 @@ func TestCheckWithUnlistableDirectory(t *testing.T) {
|
||||
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
|
||||
// only the report that index.mf is not in the manifest, so it reports the
|
||||
// error and fails under --no-extra-files.
|
||||
func TestCheckReportsUnreadableIndexMfAtTopOfBase(t *testing.T) {
|
||||
func TestCheckReportsUnreadableIndexMFAtTopOfBase(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
unreadable := filepath.Join(testDir, defaultManifestName)
|
||||
|
||||
Reference in New Issue
Block a user