Lines Matching refs:message
28 func AssertSame(t *testing.T, message string, expected interface{}, actual interface{}) {
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) {
40 t.Errorf("%s: expected %t, actual %t", message, expected, actual)
46 func AssertIntEquals(t *testing.T, message string, expected int, actual int) {
49 t.Errorf("%s: expected %d, actual %d", message, expected, actual)
55 func AssertStringEquals(t *testing.T, message string, expected string, actual string) {
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.soongOutDir, actual))
85 func AssertStringPathsRelativeToTopEquals(t *testing.T, message string, config Config, expected []s…
87 AssertDeepEquals(t, message, expected, StringPathsRelativeToTop(config.soongOutDir, actual))
93 func AssertErrorMessageEquals(t *testing.T, message string, expected string, actual error) {
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))
113 func AssertStringDoesContain(t *testing.T, message string, s string, expectedSubstring string) {
116 t.Errorf("%s: could not find %q within %q", message, expectedSubstring, s)
122 func AssertStringDoesNotContain(t *testing.T, message string, s string, unexpectedSubstring string)…
125 t.Errorf("%s: unexpectedly found %q within %q", message, unexpectedSubstring, s)
132 func AssertStringContainsEquals(t *testing.T, message string, s string, substring string, expected …
134 AssertStringDoesContain(t, message, s, substring)
136 AssertStringDoesNotContain(t, message, s, substring)
143 func AssertStringListContains(t *testing.T, message string, list []string, s string) {
146 t.Errorf("%s: could not find %q within %q", message, s, list)
152 func AssertStringListDoesNotContain(t *testing.T, message string, list []string, s string) {
155 t.Errorf("%s: unexpectedly found %q within %q", message, s, list)
162 func AssertStringListContainsEquals(t *testing.T, message string, list []string, s string, expected…
164 AssertStringListContains(t, message, list, s)
166 AssertStringListDoesNotContain(t, message, list, s)
172 func AssertArrayString(t *testing.T, message string, expected, actual []string) {
175 …t.Errorf("%s: expected %d (%q), actual (%d) %q", message, len(expected), expected, len(actual), ac…
181 message, i, expected[i], expected, actual[i], actual)
190 func AssertDeepEquals(t *testing.T, message string, expected interface{}, actual interface{}) {
193 t.Errorf("%s: expected:\n %#v\n got:\n %#v", message, expected, actual)
199 func AssertPanicMessageContains(t *testing.T, message, expectedMessageContents string, funcThatShou… argument
212 t.Errorf("%s: did not panic", message)
216 …AssertStringDoesContain(t, fmt.Sprintf("%s: panic message", message), panicMessage, expectedMessag…