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

Function TestClientCommitBody

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

CommitBodyMethod · 0.95
IsolateConfigFunction · 0.85
EqualMethod · 0.80

Tested by

no test coverage detected