reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
97 EXPECT_THAT_ERROR(R.takeError(), Succeeded()); 98 ASSERT_EQ(2U, R->Counts.size()); 99 ASSERT_EQ(1U, R->Counts[0]); 100 ASSERT_EQ(2U, R->Counts[1]); 102 R = Reader->getInstrProfRecord("foo", 0x1235); 103 EXPECT_THAT_ERROR(R.takeError(), Succeeded()); 104 ASSERT_EQ(2U, R->Counts.size()); 105 ASSERT_EQ(3U, R->Counts[0]); 106 ASSERT_EQ(4U, R->Counts[1]); 108 R = Reader->getInstrProfRecord("foo", 0x5678); 109 ASSERT_TRUE(ErrorEquals(instrprof_error::hash_mismatch, R.takeError())); 111 R = Reader->getInstrProfRecord("bar", 0x1234); 112 ASSERT_TRUE(ErrorEquals(instrprof_error::unknown_function, R.takeError()));