MCPcopy Create free account
hub / github.com/driangle/taskmd / assertStringSlice

Function assertStringSlice

apps/cli/internal/cli/commit_msg_test.go:629–640  ·  view source on GitHub ↗
(t *testing.T, label string, got, want []string)

Source from the content-addressed store, hash-verified

627}
628
629func assertStringSlice(t *testing.T, label string, got, want []string) {
630 t.Helper()
631 if len(got) != len(want) {
632 t.Errorf("%s: got %v, want %v", label, got, want)
633 return
634 }
635 for i := range got {
636 if got[i] != want[i] {
637 t.Errorf("%s[%d] = %q, want %q", label, i, got[i], want[i])
638 }
639 }
640}
641
642func TestLowerFirst(t *testing.T) {
643 tests := []struct {

Callers 1

TestParseDiffResultFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected