ext/featurens: add empty filesmap tests for all

This commit is contained in:
Jimmy Zelinskie 2017-04-21 15:08:47 -04:00
parent ae78bdc586
commit 34bc722794
4 changed files with 16 additions and 0 deletions

View File

@ -37,6 +37,10 @@ BUG_REPORT_URL="https://bugs.debian.org/"`),
"etc/apt/sources.list": []byte(`deb http://httpredir.debian.org/debian unstable main`),
},
},
{
ExpectedNamespace: nil,
Files: tarutil.FilesMap{},
},
}
featurens.TestDetector(t, &detector{}, testData)

View File

@ -44,6 +44,10 @@ DISTRIB_CODENAME=wheezy
DISTRIB_DESCRIPTION="Debian 7.1"`),
},
},
{
ExpectedNamespace: nil,
Files: tarutil.FilesMap{},
},
}
featurens.TestDetector(t, &detector{}, testData)

View File

@ -72,6 +72,10 @@ REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=20`),
},
},
{
ExpectedNamespace: nil,
Files: tarutil.FilesMap{},
},
}
featurens.TestDetector(t, &detector{}, testData)

View File

@ -48,6 +48,10 @@ func TestDetector(t *testing.T) {
"etc/system-release": []byte(`CentOS Linux release 7.1.1503 (Core)`),
},
},
{
ExpectedNamespace: nil,
Files: tarutil.FilesMap{},
},
}
featurens.TestDetector(t, &detector{}, testData)