From 5247a201c8ba77329c7b1ee40da7b8e43a56b567 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 1 Mar 2026 18:10:19 +0200 Subject: =?UTF-8?q?Release=20v0.1.0:=20code=20quality=20audit=20=E2=80=94?= =?UTF-8?q?=20fix=20dialog=20bug,=20refactor,=20add=20tests?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Fix per-keystroke dialog storm when text exceeds maxTextLength - Extract logEntry() for testable persistence with filepath.Join - Extract newInputWidget() and deduplicate shared-text loading - Rename appId to appID per Go naming conventions - Delete unused debugSharedPath function - Add error distinction in readSharedFromCache (log real errors) - Fix ANDORID_NDK_HOME typo to ANDRIOD_NDK_HOME in Magefile - Run gofmt, go mod tidy; promote defaultDirectory to const - Add unit tests for logEntry and readSharedFromCache stub Co-Authored-By: Claude Opus 4.6 --- android_shared_stub_test.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 android_shared_stub_test.go (limited to 'android_shared_stub_test.go') 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) + } +} -- cgit v1.2.3