Merge pull request #370 from jzelinskie/featurens

ext/featurens: add empty filesmap tests for all
This commit is contained in:
Jimmy Zelinskie 2017-04-21 16:35:54 -04:00 committed by GitHub
commit 558661e44b
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`), "etc/apt/sources.list": []byte(`deb http://httpredir.debian.org/debian unstable main`),
}, },
}, },
{
ExpectedNamespace: nil,
Files: tarutil.FilesMap{},
},
} }
featurens.TestDetector(t, &detector{}, testData) featurens.TestDetector(t, &detector{}, testData)

View File

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

View File

@ -72,6 +72,10 @@ REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=20`), REDHAT_SUPPORT_PRODUCT_VERSION=20`),
}, },
}, },
{
ExpectedNamespace: nil,
Files: tarutil.FilesMap{},
},
} }
featurens.TestDetector(t, &detector{}, testData) 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)`), "etc/system-release": []byte(`CentOS Linux release 7.1.1503 (Core)`),
}, },
}, },
{
ExpectedNamespace: nil,
Files: tarutil.FilesMap{},
},
} }
featurens.TestDetector(t, &detector{}, testData) featurens.TestDetector(t, &detector{}, testData)