MCPcopy Create free account
hub / github.com/cli/cli / TestClientUncommittedChangeCountReturnsZeroForCleanRepository

Function TestClientUncommittedChangeCountReturnsZeroForCleanRepository

git/client_test.go:363–373  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

361}
362
363func TestClientUncommittedChangeCountReturnsZeroForCleanRepository(t *testing.T) {
364 // Given a clean repository
365 repo := newTestRepo(t)
366
367 // When uncommitted changes are counted
368 count, err := repo.client.UncommittedChangeCount(t.Context())
369
370 // Then no changes are reported
371 require.NoError(t, err)
372 assert.Equal(t, 0, count)
373}
374
375func TestClientUncommittedChangeCountIncludesTrackedAndUntrackedFiles(t *testing.T) {
376 // Given a repository with one modified file and one untracked file

Callers

nothing calls this directly

Calls 3

newTestRepoFunction · 0.85
EqualMethod · 0.80

Tested by

no test coverage detected