diff options
author | Michael Muré <batolettre@gmail.com> | 2020-07-28 14:24:04 +0200 |
---|---|---|
committer | Michael Muré <batolettre@gmail.com> | 2020-07-28 14:30:07 +0200 |
commit | a62ce78c4fc4e541cecaab0ab22def8752d3d9e2 (patch) | |
tree | 434b75cbe63543ba5f609dadfb0e891765d13ea8 /cache | |
parent | 18ddc775905bdeabf2be4afb6fe62d2013b06dec (diff) | |
download | git-bug-a62ce78c4fc4e541cecaab0ab22def8752d3d9e2.tar.gz |
bug: code cleanup for the rm feature
Diffstat (limited to 'cache')
-rw-r--r-- | cache/repo_cache_test.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cache/repo_cache_test.go b/cache/repo_cache_test.go index e5603fca..0deb155e 100644 --- a/cache/repo_cache_test.go +++ b/cache/repo_cache_test.go @@ -8,6 +8,7 @@ import ( "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" + "github.com/MichaelMure/git-bug/bug" "github.com/MichaelMure/git-bug/query" "github.com/MichaelMure/git-bug/repository" ) @@ -204,4 +205,8 @@ func TestRemove(t *testing.T) { err = repoCache.RemoveBug(b1.Id().String()) require.NoError(t, err) assert.Equal(t, 100, len(repoCache.bugs)) + assert.Equal(t, 100, len(repoCache.bugExcerpts)) + + _, err = repoCache.ResolveBug(b1.Id()) + assert.Error(t, bug.ErrBugNotExist, err) } |