diff options
Diffstat (limited to 'android_shared_stub_test.go')
| -rw-r--r-- | android_shared_stub_test.go | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/android_shared_stub_test.go b/android_shared_stub_test.go new file mode 100644 index 0000000..cc62f5d --- /dev/null +++ b/android_shared_stub_test.go @@ -0,0 +1,15 @@ +//go:build !android + +package main + +import "testing" + +func TestReadSharedFromCacheStub(t *testing.T) { + txt, err := readSharedFromCache() + if err != nil { + t.Fatalf("stub returned error: %v", err) + } + if txt != "" { + t.Errorf("stub returned non-empty text: %q", txt) + } +} |
