MCPcopy Index your code
hub / github.com/cli/cli / TestClientCommitBody

Function TestClientCommitBody

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

Source from the content-addressed store, hash-verified

718}
719
720func TestClientCommitBody(t *testing.T) {
721 client := Client{
722 RepoDir: "./fixtures/simple.git",
723 }
724 body, err := client.CommitBody(context.Background(), "6f1a2405cace1633d89a79c74c65f22fe78f9659")
725 assert.NoError(t, err)
726 assert.Equal(t, "I'm starting to get the hang of things\n", body)
727}
728
729func TestClientReadBranchConfig(t *testing.T) {
730 tests := []struct {

Callers

nothing calls this directly

Calls 2

CommitBodyMethod · 0.95
EqualMethod · 0.80

Tested by

no test coverage detected