File: errors_test.go

package info (click to toggle)
gitbatch 0.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 644 kB
  • sloc: makefile: 5; sh: 1
file content (19 lines) | stat: -rw-r--r-- 372 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package errors

import (
	"testing"
)

func TestParseGitError(t *testing.T) {
	var tests = []struct {
		input    string
		expected error
	}{
		{"", ErrUnclassified},
	}
	for _, test := range tests {
		if output := ParseGitError(test.input, nil); output != test.expected {
			t.Errorf("Test Failed. %s expected, output: %s", test.expected.Error(), output.Error())
		}
	}
}