Lines Matching +full:message +full:- +full:handling +full:- +full:unit
1 //===--- Annotations.cpp - Annotated source code for unit tests --*- C++-*-===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
17 // Crash if the assertion fails, printing the message and testcase.
18 // More elegant error handling isn't needed for unit tests.
38 {Code.size(), size_t(-1), Name.value_or(""), Payload.value_or("")}); in Annotations()
39 Points[Name.value_or("")].push_back(All.size() - 1); in Annotations()
46 {Code.size(), size_t(-1), Name.value_or(""), Payload.value_or("")}); in Annotations()
58 Ranges[NewRange.Name].push_back(All.size() - 1); in Annotations()
66 Text = Text.drop_front(Name->size()); in Annotations()
70 Require(Text.size() > Payload->size(), "unterminated payload"); in Annotations()
71 Text = Text.drop_front(Payload->size() + 1); in Annotations()
90 require(I != Points.end() && I->getValue().size() == 1, in pointWithPayload()
92 const Annotation &P = All[I->getValue()[0]]; in pointWithPayload()
112 Res.reserve(Iter->getValue().size()); in pointsWithPayload()
113 for (size_t I : Iter->getValue()) in pointsWithPayload()
135 require(I != Ranges.end() && I->getValue().size() == 1, in rangeWithPayload()
137 const Annotation &R = All[I->getValue()[0]]; in rangeWithPayload()
157 Res.reserve(Iter->getValue().size()); in rangesWithPayload()
158 for (size_t I : Iter->getValue()) in rangesWithPayload()