MCPcopy Create free account
hub / github.com/libgit2/git2go / assertStringList

Function assertStringList

rebase_test.go:592–602  ·  view source on GitHub ↗
(t *testing.T, expected, actual []string)

Source from the content-addressed store, hash-verified

590}
591
592func assertStringList(t *testing.T, expected, actual []string) {
593 if len(expected) != len(actual) {
594 t.Fatal("Lists are not the same size, expected " + strconv.Itoa(len(expected)) +
595 ", got " + strconv.Itoa(len(actual)))
596 }
597 for index, element := range expected {
598 if element != actual[index] {
599 t.Error("Expected element " + strconv.Itoa(index) + " to be " + element + ", got " + actual[index])
600 }
601 }
602}

Callers 3

TestRebaseAbortFunction · 0.85
TestRebaseNoConflictsFunction · 0.85
TestRebaseGpgSignedFunction · 0.85

Calls 1

ErrorMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…