(t *testing.T)
| 918 | } |
| 919 | |
| 920 | func TestClientDeleteLocalTagRemovesTag(t *testing.T) { |
| 921 | // Given a repository with a local tag |
| 922 | repo := newTestRepo(t) |
| 923 | repo.run(t, "commit", "--quiet", "--allow-empty", "-m", "initial commit") |
| 924 | repo.run(t, "tag", "v1.0") |
| 925 | |
| 926 | // When the tag is deleted |
| 927 | err := repo.client.DeleteLocalTag(t.Context(), "v1.0") |
| 928 | |
| 929 | // Then the tag no longer resolves |
| 930 | require.NoError(t, err) |
| 931 | assert.Empty(t, repo.run(t, "tag", "--list", "v1.0")) |
| 932 | } |
| 933 | |
| 934 | func TestClientDeleteLocalTagReportsMissingTag(t *testing.T) { |
| 935 | // Given a repository without the requested tag |
nothing calls this directly
no test coverage detected