Home
last modified time | relevance | path

Searched refs:actual (Results 1 – 25 of 3648) sorted by relevance

12345678910>>...146

/external/truth/core/src/test/java/com/google/common/truth/
DMapSubjectTest.java46 Map<String, String> actual = Maps.newHashMap(); in containsExactlyWithNullKey() local
47 actual.put(null, "value"); in containsExactlyWithNullKey()
49 assertThat(actual).containsExactly(null, "value"); in containsExactlyWithNullKey()
50 assertThat(actual).containsExactly(null, "value").inOrder(); in containsExactlyWithNullKey()
51 assertThat(actual).containsExactlyEntriesIn(actual); in containsExactlyWithNullKey()
52 assertThat(actual).containsExactlyEntriesIn(actual).inOrder(); in containsExactlyWithNullKey()
57 Map<String, String> actual = Maps.newHashMap(); in containsExactlyWithNullValue() local
58 actual.put("key", null); in containsExactlyWithNullValue()
60 assertThat(actual).containsExactly("key", null); in containsExactlyWithNullValue()
61 assertThat(actual).containsExactly("key", null).inOrder(); in containsExactlyWithNullValue()
[all …]
DMultimapSubjectTest.java289 ListMultimap<String, String> actual = ArrayListMultimap.create(); in containsEntryWithNullValueNullExpected() local
290 actual.put("a", null); in containsEntryWithNullValueNullExpected()
291 assertThat(actual).containsEntry("a", null); in containsEntryWithNullValueNullExpected()
296 ImmutableMultimap<String, String> actual = ImmutableMultimap.of("a", "A"); in failContainsEntry() local
297 expectFailureWhenTestingThat(actual).containsEntry("b", "B"); in failContainsEntry()
305 ImmutableMultimap<String, String> actual = ImmutableMultimap.of("a", "A"); in failContainsEntryFailsWithWrongValueForKey() local
306 expectFailureWhenTestingThat(actual).containsEntry("a", "a"); in failContainsEntryFailsWithWrongValueForKey()
317 ListMultimap<String, String> actual = ArrayListMultimap.create(); in failContainsEntryWithNullValuePresentExpected() local
318 actual.put("a", null); in failContainsEntryWithNullValuePresentExpected()
319 expectFailureWhenTestingThat(actual).containsEntry("a", "A"); in failContainsEntryWithNullValuePresentExpected()
[all …]
DIterableSubjectCorrespondenceTest.java59 ImmutableList<String> actual = ImmutableList.of("not a number", "+123", "+456", "+789"); in contains_success() local
60 assertThat(actual) in contains_success()
67 ImmutableList<String> actual = ImmutableList.of("not a number", "+123", "+456", "+789"); in contains_failure() local
70 .that(actual) in contains_failure()
82 List<String> actual = asList("abc", null, "ghi"); in contains_handlesExceptions() local
85 .that(actual) in contains_handlesExceptions()
102 List<String> actual = asList("abc", null, "ghi"); in contains_handlesExceptions_alwaysFails() local
105 .that(actual) in contains_handlesExceptions_alwaysFails()
127 ImmutableList<Record> actual = in displayingDiffsPairedBy_1arg_contains() local
136 .that(actual) in displayingDiffsPairedBy_1arg_contains()
[all …]
/external/angle/build/android/pylib/gtest/
Dgtest_test_instance_test.py24 actual = gtest_test_instance.ParseGTestListTests(raw_output)
31 self.assertEqual(expected, actual)
39 actual = gtest_test_instance.ParseGTestListTests(raw_output)
44 self.assertEqual(expected, actual)
52 actual = gtest_test_instance.ParseGTestListTests(raw_output)
57 self.assertEqual(expected, actual)
65 actual = gtest_test_instance.ParseGTestListTests(raw_output)
70 self.assertEqual(expected, actual)
78 actual = gtest_test_instance.ParseGTestListTests(raw_output)
83 self.assertEqual(expected, actual)
[all …]
/external/cronet/build/android/pylib/gtest/
Dgtest_test_instance_test.py24 actual = gtest_test_instance.ParseGTestListTests(raw_output)
31 self.assertEqual(expected, actual)
39 actual = gtest_test_instance.ParseGTestListTests(raw_output)
44 self.assertEqual(expected, actual)
52 actual = gtest_test_instance.ParseGTestListTests(raw_output)
57 self.assertEqual(expected, actual)
65 actual = gtest_test_instance.ParseGTestListTests(raw_output)
70 self.assertEqual(expected, actual)
78 actual = gtest_test_instance.ParseGTestListTests(raw_output)
83 self.assertEqual(expected, actual)
[all …]
/external/libbrillo/brillo/
Dvalue_conversion_test.cc44 #define EXPECT_JSON_EQ(expected, actual) \ argument
45 EXPECT_PRED2(IsEqualValue, *ParseValue(expected), actual)
50 int actual; in TEST() local
51 EXPECT_TRUE(FromValue(*ParseValue("123"), &actual)); in TEST()
52 EXPECT_EQ(123, actual); in TEST()
54 EXPECT_TRUE(FromValue(*ParseValue("-123"), &actual)); in TEST()
55 EXPECT_EQ(-123, actual); in TEST()
57 EXPECT_FALSE(FromValue(*ParseValue("true"), &actual)); in TEST()
61 bool actual; in TEST() local
62 EXPECT_TRUE(FromValue(*ParseValue("false"), &actual)); in TEST()
[all …]
/external/testng/src/main/java/org/testng/asserts/
DAssertion.java70 private final T actual; field in Assertion.SimpleAssert
78 public SimpleAssert(T actual, T expected) { in SimpleAssert() argument
79 this(actual, expected, null); in SimpleAssert()
82 public SimpleAssert(T actual, T expected, String message) { in SimpleAssert() argument
83 this.actual = actual; in SimpleAssert()
95 return actual; in getActual()
171 public <T> void assertEquals(final T actual, final T expected, final String message) { in assertEquals() argument
172 doAssert(new SimpleAssert<T>(actual, expected, message) { in assertEquals()
175 org.testng.Assert.assertEquals(actual, expected, message); in assertEquals()
180 public <T> void assertEquals(final T actual, final T expected) { in assertEquals() argument
[all …]
/external/testng/src/main/java/org/testng/
DAssertJUnit.java73 static public void assertEquals(String message, Object expected, Object actual) { in assertEquals() argument
74 if((expected == null) && (actual == null)) { in assertEquals()
77 if((expected != null) && expected.equals(actual)) { in assertEquals()
80 failNotEquals(message, expected, actual); in assertEquals()
87 static public void assertEquals(Object expected, Object actual) { in assertEquals() argument
88 assertEquals(null, expected, actual); in assertEquals()
94 static public void assertEquals(String message, String expected, String actual) { in assertEquals() argument
95 if((expected == null) && (actual == null)) { in assertEquals()
98 if((expected != null) && expected.equals(actual)) { in assertEquals()
101 throw new AssertionError(format(message, expected, actual)); in assertEquals()
[all …]
DAssert.java111 static public void assertEquals(Object actual, Object expected, String message) { in assertEquals() argument
113 assertArrayEquals(actual, expected, message); in assertEquals()
116 assertEqualsImpl(actual, expected, message); in assertEquals()
124 private static void assertEqualsImpl(Object actual, Object expected, in assertEqualsImpl() argument
126 if((expected == null) && (actual == null)) { in assertEqualsImpl()
129 if(expected == null ^ actual == null) { in assertEqualsImpl()
130 failNotEquals(actual, expected, message); in assertEqualsImpl()
132 if (expected.equals(actual) && actual.equals(expected)) { in assertEqualsImpl()
135 failNotEquals(actual, expected, message); in assertEqualsImpl()
138 private static void assertArrayEquals(Object actual, Object expected, String message) { in assertArrayEquals() argument
[all …]
/external/apache-velocity-engine/velocity-engine-core/src/main/java/org/apache/velocity/util/introspection/
DIntrospectionUtils.java155 Class<?> actual, in isMethodInvocationConvertible() argument
162 if (actual == null) in isMethodInvocationConvertible()
168 if (formalClass.isAssignableFrom(actual)) in isMethodInvocationConvertible()
177 if (!formalClass.isPrimitive() && actual.isPrimitive()) in isMethodInvocationConvertible()
179 Class<?> boxed = boxingMap.get(actual); in isMethodInvocationConvertible()
185 if (actual.isPrimitive()) in isMethodInvocationConvertible()
188 if (formalClass == Short.TYPE && actual == Byte.TYPE) in isMethodInvocationConvertible()
191 actual == Byte.TYPE || actual == Short.TYPE)) in isMethodInvocationConvertible()
194 actual == Byte.TYPE || actual == Short.TYPE || actual == Integer.TYPE)) in isMethodInvocationConvertible()
197 actual == Byte.TYPE || actual == Short.TYPE || actual == Integer.TYPE || in isMethodInvocationConvertible()
[all …]
/external/junit/src/main/java/junit/framework/
DAssert.java71 public static void assertEquals(String message, Object expected, Object actual) { in assertEquals() argument
72 if (expected == null && actual == null) { in assertEquals()
75 if (expected != null && expected.equals(actual)) { in assertEquals()
78 failNotEquals(message, expected, actual); in assertEquals()
85 public static void assertEquals(Object expected, Object actual) { in assertEquals() argument
86 assertEquals(null, expected, actual); in assertEquals()
92 public static void assertEquals(String message, String expected, String actual) { in assertEquals() argument
93 if (expected == null && actual == null) { in assertEquals()
96 if (expected != null && expected.equals(actual)) { in assertEquals()
100 throw new ComparisonFailure(cleanMessage, expected, actual); in assertEquals()
[all …]
DTestCase.java237 public static void assertEquals(String message, Object expected, Object actual) { in assertEquals() argument
238 Assert.assertEquals(message, expected, actual); in assertEquals()
245 public static void assertEquals(Object expected, Object actual) { in assertEquals() argument
246 Assert.assertEquals(expected, actual); in assertEquals()
252 public static void assertEquals(String message, String expected, String actual) { in assertEquals() argument
253 Assert.assertEquals(message, expected, actual); in assertEquals()
259 public static void assertEquals(String expected, String actual) { in assertEquals() argument
260 Assert.assertEquals(expected, actual); in assertEquals()
268 public static void assertEquals(String message, double expected, double actual, double delta) { in assertEquals() argument
269 Assert.assertEquals(message, expected, actual, delta); in assertEquals()
[all …]
/external/okio/okio/src/nonJvmMain/kotlin/okio/
DBufferedSource.kt18 actual interface BufferedSource : Source {
19 actual val buffer: Buffer
21 actual fun exhausted(): Boolean
23 actual fun require(byteCount: Long)
25 actual fun request(byteCount: Long): Boolean
27 actual fun readByte(): Byte
29 actual fun readShort(): Short
31 actual fun readShortLe(): Short
33 actual fun readInt(): Int
35 actual fun readIntLe(): Int
[all …]
DByteString.kt52 actual open class ByteString
53 internal actual constructor(
54 internal actual val data: ByteArray
57 internal actual var hashCode: Int = 0 // 0 if unknown.
62 internal actual var utf8: String? = null
67 actual open fun utf8(): String = commonUtf8() in utf8()
69 actual open fun base64(): String = commonBase64() in utf8()
71 actual open fun base64Url(): String = commonBase64Url() in utf8()
73 actual open fun hex(): String = commonHex() in utf8()
75 actual fun md5() = digest(Md5()) in utf8()
[all …]
/external/truth/core/src/main/java/com/google/common/truth/
DStandardSubjectBuilder.java66 @Nullable ComparableT actual) { in that()
67 return new ComparableSubject(metadata(), actual) {}; in that()
70 public final BigDecimalSubject that(@Nullable BigDecimal actual) { in that() argument
71 return new BigDecimalSubject(metadata(), actual); in that()
74 public final Subject that(@Nullable Object actual) { in that() argument
75 return new Subject(metadata(), actual); in that()
79 public final ClassSubject that(@Nullable Class<?> actual) { in that() argument
80 return new ClassSubject(metadata(), actual); in that()
83 public final ThrowableSubject that(@Nullable Throwable actual) { in that() argument
84 return new ThrowableSubject(metadata(), actual, "throwable"); in that()
[all …]
DTruth.java147 public static <T extends Comparable<?>> ComparableSubject<T> assertThat(@Nullable T actual) { in assertThat() argument
148 return assert_().that(actual); in assertThat()
151 public static BigDecimalSubject assertThat(@Nullable BigDecimal actual) { in assertThat() argument
152 return assert_().that(actual); in assertThat()
155 public static Subject assertThat(@Nullable Object actual) { in assertThat() argument
156 return assert_().that(actual); in assertThat()
160 public static ClassSubject assertThat(@Nullable Class<?> actual) { in assertThat() argument
161 return assert_().that(actual); in assertThat()
164 public static ThrowableSubject assertThat(@Nullable Throwable actual) { in assertThat() argument
165 return assert_().that(actual); in assertThat()
[all …]
DStringSubject.java35 private final String actual; field in StringSubject
43 this.actual = string; in StringSubject()
56 check("length()").that(actual.length()).isEqualTo(expectedLength); in hasLength()
61 if (actual == null) { in isEmpty()
63 } else if (!actual.isEmpty()) { in isEmpty()
70 if (actual == null) { in isNotEmpty()
72 } else if (actual.isEmpty()) { in isNotEmpty()
80 if (actual == null) { in contains()
82 } else if (!actual.contains(string)) { in contains()
90 if (actual == null) { in doesNotContain()
[all …]
/external/easymock/src/org/easymock/internal/matchers/
DArrayEquals.java31 public boolean matches(Object actual) { in matches() argument
34 && (actual == null || actual instanceof boolean[])) { in matches()
35 return Arrays.equals((boolean[]) expected, (boolean[]) actual); in matches()
37 && (actual == null || actual instanceof byte[])) { in matches()
38 return Arrays.equals((byte[]) expected, (byte[]) actual); in matches()
40 && (actual == null || actual instanceof char[])) { in matches()
41 return Arrays.equals((char[]) expected, (char[]) actual); in matches()
43 && (actual == null || actual instanceof double[])) { in matches()
44 return Arrays.equals((double[]) expected, (double[]) actual); in matches()
46 && (actual == null || actual instanceof float[])) { in matches()
[all …]
/external/angle/build/android/pylib/utils/
Dtest_filter_test.py24 actual = test_filter.ParseFilterFile(input_lines)
26 self.assertEqual(expected, actual)
33 actual = test_filter.ParseFilterFile(input_lines)
35 self.assertEqual(expected, actual)
42 actual = test_filter.ParseFilterFile(input_lines)
44 self.assertEqual(expected, actual)
53 actual = test_filter.ParseFilterFile(input_lines)
55 self.assertEqual(expected, actual)
67 actual = test_filter.InitializeFiltersFromArgs(args)
68 self.assertEqual(actual, expected)
[all …]
/external/cronet/build/android/pylib/utils/
Dtest_filter_test.py24 actual = test_filter.ParseFilterFile(input_lines)
26 self.assertEqual(expected, actual)
33 actual = test_filter.ParseFilterFile(input_lines)
35 self.assertEqual(expected, actual)
42 actual = test_filter.ParseFilterFile(input_lines)
44 self.assertEqual(expected, actual)
53 actual = test_filter.ParseFilterFile(input_lines)
55 self.assertEqual(expected, actual)
67 actual = test_filter.InitializeFiltersFromArgs(args)
68 self.assertEqual(actual, expected)
[all …]
/external/okio/okio/src/jvmMain/kotlin/okio/
DBufferedSource.kt23 actual interface BufferedSource : Source, ReadableByteChannel {
32 actual val buffer: Buffer
35 actual fun exhausted(): Boolean
38 actual fun require(byteCount: Long)
41 actual fun request(byteCount: Long): Boolean
44 actual fun readByte(): Byte
47 actual fun readShort(): Short
50 actual fun readShortLe(): Short
53 actual fun readInt(): Int
56 actual fun readIntLe(): Int
[all …]
/external/kotlinx.atomicfu/atomicfu/src/jsMain/kotlin/kotlinx/atomicfu/
DAtomicFU.kt13 public actual fun <T> atomic(initial: T, trace: TraceBase): AtomicRef<T> = AtomicRef<T>(initial) in atomic()
16 public actual fun <T> atomic(initial: T): AtomicRef<T> = atomic(initial, None) in atomic()
19 public actual fun atomic(initial: Int, trace: TraceBase): AtomicInt = AtomicInt(initial) in atomic()
22 public actual fun atomic(initial: Int): AtomicInt = atomic(initial, None) in atomic()
25 public actual fun atomic(initial: Long, trace: TraceBase): AtomicLong = AtomicLong(initial) in atomic()
28 public actual fun atomic(initial: Long): AtomicLong = atomic(initial, None) in atomic()
31 public actual fun atomic(initial: Boolean, trace: TraceBase): AtomicBoolean = AtomicBoolean(initial) in atomic()
34 public actual fun atomic(initial: Boolean): AtomicBoolean = atomic(initial, None) in atomic()
38 public actual class AtomicRef<T> internal constructor(value: T) { in atomic()
40 public actual var value: T = value in atomic()
[all …]
/external/junit/src/main/java/org/junit/
DAssert.java111 Object actual) { in assertEquals() argument
112 if (equalsRegardingNull(expected, actual)) { in assertEquals()
115 if (expected instanceof String && actual instanceof String) { in assertEquals()
118 (String) actual); in assertEquals()
120 failNotEquals(message, expected, actual); in assertEquals()
124 private static boolean equalsRegardingNull(Object expected, Object actual) { in equalsRegardingNull() argument
126 return actual == null; in equalsRegardingNull()
129 return isEquals(expected, actual); in equalsRegardingNull()
132 private static boolean isEquals(Object expected, Object actual) { in isEquals() argument
133 return expected.equals(actual); in isEquals()
[all …]
/external/kotlinx.atomicfu/atomicfu/src/nativeMain/kotlin/kotlinx/atomicfu/
DAtomicFU.kt17 public actual fun <T> atomic(initial: T, trace: TraceBase): AtomicRef<T> = AtomicRef<T>(KAtomicRef(… in atomic()
18 public actual fun <T> atomic(initial: T): AtomicRef<T> = atomic(initial, None) in atomic()
19 public actual fun atomic(initial: Int, trace: TraceBase): AtomicInt = AtomicInt(KAtomicInt(initial)) in atomic()
20 public actual fun atomic(initial: Int): AtomicInt = atomic(initial, None) in atomic()
21 public actual fun atomic(initial: Long, trace: TraceBase): AtomicLong = AtomicLong(KAtomicLong(init… in atomic()
22 public actual fun atomic(initial: Long): AtomicLong = atomic(initial, None) in atomic()
23 public actual fun atomic(initial: Boolean, trace: TraceBase): AtomicBoolean = AtomicBoolean(KAtomic… in atomic()
24 public actual fun atomic(initial: Boolean): AtomicBoolean = atomic(initial, None) in atomic()
29 public actual value class AtomicRef<T> internal constructor(@PublishedApi internal val a: KAtomicRe… in atomic()
30 public actual inline var value: T in atomic()
[all …]
/external/tensorflow/tensorflow/compiler/xla/tests/
Dliteral_test_util.h48 const Shape& expected, const Shape& actual);
53 const Shape& expected, const Shape& actual);
56 const LiteralSlice& expected, const LiteralSlice& actual);
60 static void ExpectR0Equal(NativeT expected, const LiteralSlice& actual);
64 const LiteralSlice& actual);
68 const LiteralSlice& actual);
75 const LiteralSlice& actual);
80 const LiteralSlice& actual);
83 const LiteralSlice& actual);
86 const LiteralSlice& actual);
[all …]

12345678910>>...146