|
26 | 26 | sourcemeta::core::to_pointer(expected_instance_location)}; \ |
27 | 27 | const auto evaluate_path{ \ |
28 | 28 | sourcemeta::core::to_pointer(expected_evaluate_path)}; \ |
29 | | - EXPECT_TRUE(output.annotations().contains( \ |
30 | | - {sourcemeta::core::to_weak_pointer(instance_location), \ |
31 | | - sourcemeta::core::to_weak_pointer(evaluate_path), \ |
32 | | - (expected_schema_location)})); \ |
33 | | - EXPECT_EQ(output.annotations() \ |
34 | | - .at({sourcemeta::core::to_weak_pointer(instance_location), \ |
35 | | - sourcemeta::core::to_weak_pointer(evaluate_path), \ |
36 | | - (expected_schema_location)}) \ |
37 | | - .size(), \ |
| 29 | + const std::string schema_location{expected_schema_location}; \ |
| 30 | + const sourcemeta::blaze::SimpleOutput::Location location{ \ |
| 31 | + sourcemeta::core::to_weak_pointer(instance_location), \ |
| 32 | + sourcemeta::core::to_weak_pointer(evaluate_path), schema_location}; \ |
| 33 | + EXPECT_TRUE(output.annotations().contains(location)); \ |
| 34 | + EXPECT_EQ(output.annotations().at(location).size(), \ |
38 | 35 | (expected_entry_count)); \ |
39 | 36 | } |
40 | 37 |
|
|
46 | 43 | sourcemeta::core::to_pointer(expected_instance_location)}; \ |
47 | 44 | const auto evaluate_path{ \ |
48 | 45 | sourcemeta::core::to_pointer(expected_evaluate_path)}; \ |
49 | | - EXPECT_EQ(output.annotations() \ |
50 | | - .at({sourcemeta::core::to_weak_pointer(instance_location), \ |
51 | | - sourcemeta::core::to_weak_pointer(evaluate_path), \ |
52 | | - (expected_schema_location)}) \ |
53 | | - .at(expected_entry_index), \ |
| 46 | + const std::string schema_location{expected_schema_location}; \ |
| 47 | + const sourcemeta::blaze::SimpleOutput::Location location{ \ |
| 48 | + sourcemeta::core::to_weak_pointer(instance_location), \ |
| 49 | + sourcemeta::core::to_weak_pointer(evaluate_path), schema_location}; \ |
| 50 | + EXPECT_EQ(output.annotations().at(location).at(expected_entry_index), \ |
54 | 51 | (expected_value)); \ |
55 | 52 | } |
56 | 53 |
|
|
0 commit comments