Debian Codegraph @

internal/errors/errors_test.go

raw symbols SCIP
1 package errors
2
3 import (
4 "testing"
5 )
6
7 func TestParseGitError(t *testing.T) {
8 var tests = []struct {
9 input string
10 expected error
11 }{
12 {"", ErrUnclassified},
13 }
14 for _, test := range tests {
15 if output := ParseGitError(test.input, nil); output != test.expected {
16 t.Errorf("Test Failed. %s expected, output: %s", test.expected.Error(), output.Error())
17 }
18 }
19 }