| 1 | package errorsscip-go gomod github.com/isacikgoz/gitbatch . `github.com/isacikgoz/gitbatch/internal/errors`/ |
| 2 | |
| 3 | import ( |
| 4 | "testingscip-go gomod github.com/golang/go/src go1.16 testing/" |
| 5 | ) |
| 6 | |
| 7 | func TestParseGitErrorscip-go gomod github.com/isacikgoz/gitbatch . `github.com/isacikgoz/gitbatch/internal/errors`/TestParseGitError().(t *testingscip-go gomod github.com/golang/go/src go1.16 testing/.Tscip-go gomod github.com/golang/go/src go1.16 testing/T#) { |
| 8 | var tests = []struct { |
| 9 | input string |
| 10 | expected error |
| 11 | }{ |
| 12 | {"", ErrUnclassifiedscip-go gomod github.com/isacikgoz/gitbatch . `github.com/isacikgoz/gitbatch/internal/errors`/ErrUnclassified.}, |
| 13 | } |
| 14 | for _, test := range tests { |
| 15 | if output := ParseGitErrorscip-go gomod github.com/isacikgoz/gitbatch . `github.com/isacikgoz/gitbatch/internal/errors`/ParseGitError().(test.input, nil); output != test.expected { |
| 16 | t.Errorfscip-go gomod github.com/golang/go/src go1.16 testing/common#Errorf().("Test Failed. %s expected, output: %s", test.expected.Error(), output.Error()) |
| 17 | } |
| 18 | } |
| 19 | } |