Lines Matching refs:expected
28 func AssertSame(t *testing.T, message string, expected interface{}, actual interface{}) {
30 if actual != expected {
31 t.Errorf("%s: expected:\n%#v\nactual:\n%#v", message, expected, actual)
37 func AssertBoolEquals(t *testing.T, message string, expected bool, actual bool) {
39 if actual != expected {
40 t.Errorf("%s: expected %t, actual %t", message, expected, actual)
46 func AssertIntEquals(t *testing.T, message string, expected int, actual int) {
48 if actual != expected {
49 t.Errorf("%s: expected %d, actual %d", message, expected, actual)
55 func AssertStringEquals(t *testing.T, message string, expected string, actual string) {
57 if actual != expected {
58 t.Errorf("%s: expected %s, actual %s", message, expected, actual)
64 func AssertPathRelativeToTopEquals(t *testing.T, message string, expected string, actual Path) {
66 AssertStringEquals(t, message, expected, PathRelativeToTop(actual))
71 func AssertPathsRelativeToTopEquals(t *testing.T, message string, expected []string, actual Paths) {
73 AssertDeepEquals(t, message, expected, PathsRelativeToTop(actual))
78 func AssertStringPathRelativeToTopEquals(t *testing.T, message string, config Config, expected stri…
80 AssertStringEquals(t, message, expected, StringPathRelativeToTop(config.buildDir, actual))
85 func AssertStringPathsRelativeToTopEquals(t *testing.T, message string, config Config, expected []s…
87 AssertDeepEquals(t, message, expected, StringPathsRelativeToTop(config.buildDir, actual))
93 func AssertErrorMessageEquals(t *testing.T, message string, expected string, actual error) {
97 } else if actual.Error() != expected {
98 t.Errorf("%s: expected %s, actual %s", message, expected, actual.Error())
105 func AssertTrimmedStringEquals(t *testing.T, message string, expected string, actual string) {
107 AssertStringEquals(t, message, strings.TrimSpace(expected), strings.TrimSpace(actual))
132 func AssertStringContainsEquals(t *testing.T, message string, s string, substring string, expected …
133 if expected {
162 func AssertStringListContainsEquals(t *testing.T, message string, list []string, s string, expected…
163 if expected {
172 func AssertArrayString(t *testing.T, message string, expected, actual []string) { argument
174 if len(actual) != len(expected) {
175 …t.Errorf("%s: expected %d (%q), actual (%d) %q", message, len(expected), expected, len(actual), ac…
179 if actual[i] != expected[i] {
181 message, i, expected[i], expected, actual[i], actual)
190 func AssertDeepEquals(t *testing.T, message string, expected interface{}, actual interface{}) {
192 if !reflect.DeepEqual(actual, expected) {
193 t.Errorf("%s: expected:\n %#v\n got:\n %#v", message, expected, actual)