summaryrefslogtreecommitdiff
path: root/android/paths_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'android/paths_test.go')
-rw-r--r--android/paths_test.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/android/paths_test.go b/android/paths_test.go
index 941f0ca78..5e618f914 100644
--- a/android/paths_test.go
+++ b/android/paths_test.go
@@ -1592,6 +1592,12 @@ func TestPathRelativeToTop(t *testing.T) {
})
}
+func TestDirectoryPathIsIncompatibleWithPath(t *testing.T) {
+ d := (DirectoryPath)(&directoryPath{})
+ _, ok := d.(Path)
+ AssertBoolEquals(t, "directoryPath shouldn't implement Path", ok, false)
+}
+
func ExampleOutputPath_ReplaceExtension() {
ctx := &configErrorWrapper{
config: TestConfig("out", nil, "", nil),