From 5922fd8e3c1d350c22b7aab3895fa610d7bc8d2d Mon Sep 17 00:00:00 2001 From: Grzegorz Dlugoszewski Date: Sun, 24 Aug 2025 21:10:13 +0200 Subject: [PATCH] Fix incorrect tests in repo_test --- pkg/git/repo_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/git/repo_test.go b/pkg/git/repo_test.go index 9ee8510..12c61d6 100644 --- a/pkg/git/repo_test.go +++ b/pkg/git/repo_test.go @@ -73,12 +73,12 @@ func TestUntracked(t *testing.T) { { name: "single untracked", repoMaker: test.RepoWithUntracked, - want: 0, + want: 1, }, { name: "single tracked ", repoMaker: test.RepoWithStaged, - want: 1, + want: 0, }, { name: "committed", @@ -96,7 +96,7 @@ func TestUntracked(t *testing.T) { t.Run(test.name, func(t *testing.T) { r, _ := Open(test.repoMaker(t).Path()) - got, err := r.Uncommitted() + got, err := r.Untracked() if err != nil { t.Errorf("got error %q", err) }