Home
last modified time | relevance | path

Searched refs:Invocation (Results 1 – 25 of 459) sorted by relevance

12345678910>>...19

/aosp_15_r20/external/mockito/src/main/java/org/mockito/internal/invocation/
H A DInvocationsFinder.java14 import org.mockito.invocation.Invocation;
23 …public static List<Invocation> findInvocations(List<Invocation> invocations, MatchableInvocation w… in findInvocations()
27 …public static List<Invocation> findAllMatchingUnverifiedChunks(List<Invocation> invocations, Match… in findAllMatchingUnverifiedChunks()
28 List<Invocation> unverified = removeVerifiedInOrder(invocations, orderingContext); in findAllMatchingUnverifiedChunks()
47 …public static List<Invocation> findMatchingChunk(List<Invocation> invocations, MatchableInvocation… in findMatchingChunk()
48 List<Invocation> unverified = removeVerifiedInOrder(invocations, context); in findMatchingChunk()
49 List<Invocation> firstChunk = getFirstMatchingChunk(wanted, unverified); in findMatchingChunk()
58 …private static List<Invocation> getFirstMatchingChunk(MatchableInvocation wanted, List<Invocation>… in getFirstMatchingChunk()
59 List<Invocation> firstChunk = new LinkedList<Invocation>(); in getFirstMatchingChunk()
60 for (Invocation invocation : unverified) { in getFirstMatchingChunk()
[all …]
H A DInvocationMatcher.java22 import org.mockito.invocation.Invocation;
32 private final Invocation invocation;
36 public InvocationMatcher(Invocation invocation, List<ArgumentMatcher> matchers) { in InvocationMatcher()
46 public InvocationMatcher(Invocation invocation) { in InvocationMatcher()
50 public static List<InvocationMatcher> createFrom(List<Invocation> invocations) { in createFrom()
52 for (Invocation i : invocations) { in createFrom()
63 public Invocation getInvocation() { in getInvocation()
80 public boolean matches(Invocation candidate) { in matches()
88 public boolean hasSimilarMethod(Invocation candidate) { in hasSimilarMethod()
109 public boolean hasSameMethod(Invocation candidate) { in hasSameMethod()
[all …]
H A DInvocationMarker.java8 import org.mockito.invocation.Invocation;
17 public static void markVerified(List<Invocation> invocations, MatchableInvocation wanted) { in markVerified()
18 for (Invocation invocation : invocations) { in markVerified()
23 public static void markVerified(Invocation invocation, MatchableInvocation wanted) { in markVerified()
28 …public static void markVerifiedInOrder(List<Invocation> chunk, MatchableInvocation wanted, InOrder… in markVerifiedInOrder()
31 for (Invocation i : chunk) { in markVerifiedInOrder()
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567b/include/clang/Frontend/
DCompilerInstance.h81 std::shared_ptr<CompilerInvocation> Invocation; variable
238 bool hasInvocation() const { return Invocation != nullptr; } in hasInvocation()
241 assert(Invocation && "Compiler instance has no invocation!"); in getInvocation()
242 return *Invocation; in getInvocation()
245 std::shared_ptr<CompilerInvocation> getInvocationPtr() { return Invocation; } in getInvocationPtr()
263 AnalyzerOptions &getAnalyzerOpts() { return Invocation->getAnalyzerOpts(); } in getAnalyzerOpts()
266 return Invocation->getCodeGenOpts(); in getCodeGenOpts()
269 return Invocation->getCodeGenOpts(); in getCodeGenOpts()
273 return Invocation->getDependencyOutputOpts(); in getDependencyOutputOpts()
276 return Invocation->getDependencyOutputOpts(); in getDependencyOutputOpts()
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567/include/clang/Frontend/
DCompilerInstance.h81 std::shared_ptr<CompilerInvocation> Invocation; variable
238 bool hasInvocation() const { return Invocation != nullptr; } in hasInvocation()
241 assert(Invocation && "Compiler instance has no invocation!"); in getInvocation()
242 return *Invocation; in getInvocation()
245 std::shared_ptr<CompilerInvocation> getInvocationPtr() { return Invocation; } in getInvocationPtr()
263 AnalyzerOptions &getAnalyzerOpts() { return Invocation->getAnalyzerOpts(); } in getAnalyzerOpts()
266 return Invocation->getCodeGenOpts(); in getCodeGenOpts()
269 return Invocation->getCodeGenOpts(); in getCodeGenOpts()
273 return Invocation->getDependencyOutputOpts(); in getDependencyOutputOpts()
276 return Invocation->getDependencyOutputOpts(); in getDependencyOutputOpts()
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r536225/include/clang/Frontend/
DCompilerInstance.h81 std::shared_ptr<CompilerInvocation> Invocation; variable
256 bool hasInvocation() const { return Invocation != nullptr; } in hasInvocation()
259 assert(Invocation && "Compiler instance has no invocation!"); in getInvocation()
260 return *Invocation; in getInvocation()
263 std::shared_ptr<CompilerInvocation> getInvocationPtr() { return Invocation; } in getInvocationPtr()
281 AnalyzerOptions &getAnalyzerOpts() { return Invocation->getAnalyzerOpts(); } in getAnalyzerOpts()
284 return Invocation->getCodeGenOpts(); in getCodeGenOpts()
287 return Invocation->getCodeGenOpts(); in getCodeGenOpts()
291 return Invocation->getDependencyOutputOpts(); in getDependencyOutputOpts()
294 return Invocation->getDependencyOutputOpts(); in getDependencyOutputOpts()
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r522817/include/clang/Frontend/
DCompilerInstance.h81 std::shared_ptr<CompilerInvocation> Invocation; variable
235 bool hasInvocation() const { return Invocation != nullptr; } in hasInvocation()
238 assert(Invocation && "Compiler instance has no invocation!"); in getInvocation()
239 return *Invocation; in getInvocation()
242 std::shared_ptr<CompilerInvocation> getInvocationPtr() { return Invocation; } in getInvocationPtr()
260 AnalyzerOptions &getAnalyzerOpts() { return Invocation->getAnalyzerOpts(); } in getAnalyzerOpts()
263 return Invocation->getCodeGenOpts(); in getCodeGenOpts()
266 return Invocation->getCodeGenOpts(); in getCodeGenOpts()
270 return Invocation->getDependencyOutputOpts(); in getDependencyOutputOpts()
273 return Invocation->getDependencyOutputOpts(); in getDependencyOutputOpts()
[all …]
/aosp_15_r20/external/clang/include/clang/Frontend/
H A DCompilerInstance.h73 IntrusiveRefCntPtr<CompilerInvocation> Invocation; variable
225 bool hasInvocation() const { return Invocation != nullptr; } in hasInvocation()
228 assert(Invocation && "Compiler instance has no invocation!"); in getInvocation()
229 return *Invocation; in getInvocation()
249 return Invocation->getAnalyzerOpts(); in getAnalyzerOpts()
253 return Invocation->getCodeGenOpts(); in getCodeGenOpts()
256 return Invocation->getCodeGenOpts(); in getCodeGenOpts()
260 return Invocation->getDependencyOutputOpts(); in getDependencyOutputOpts()
263 return Invocation->getDependencyOutputOpts(); in getDependencyOutputOpts()
267 return Invocation->getDiagnosticOpts(); in getDiagnosticOpts()
[all …]
/aosp_15_r20/external/mockito/src/test/java/org/mockito/internal/invocation/
H A DInvocationsFinderTest.java14 import org.mockito.invocation.Invocation;
31 private LinkedList<Invocation> invocations = new LinkedList<Invocation>();
32 private Invocation simpleMethodInvocation;
33 private Invocation simpleMethodInvocationTwo;
34 private Invocation differentMethodInvocation;
52 …List<Invocation> actual = InvocationsFinder.findInvocations(invocations, new InvocationMatcher(sim… in shouldFindActualInvocations()
115Invocation overloadedSimpleMethod = new InvocationBuilder().mock(mock).simpleMethod().arg("test").… in shouldFindFirstSimilarInvocationByName()
117Invocation found = InvocationsFinder.findSimilarInvocation(invocations, new InvocationMatcher(over… in shouldFindFirstSimilarInvocationByName()
123Invocation overloadedDifferentMethod = new InvocationBuilder().differentMethod().arg("test").toInv… in shouldFindInvocationWithTheSameMethod()
127Invocation found = InvocationsFinder.findSimilarInvocation(invocations, new InvocationMatcher(over… in shouldFindInvocationWithTheSameMethod()
[all …]
H A DInvocationMatcherTest.java28 import org.mockito.invocation.Invocation;
45 Invocation invocation = new InvocationBuilder().toInvocation(); in should_be_a_citizen_of_hashes()
46 Invocation invocationTwo = new InvocationBuilder().args("blah").toInvocation(); in should_be_a_citizen_of_hashes()
77 Invocation same = new InvocationBuilder().mock(mock).simpleMethod().toInvocation(); in should_know_if_is_similar_to()
80 Invocation different = new InvocationBuilder().mock(mock).differentMethod().toInvocation(); in should_know_if_is_similar_to()
86 Invocation verified = new InvocationBuilder().simpleMethod().verified().toInvocation(); in should_not_be_similar_to_verified_invocation()
92Invocation onDifferentMock = new InvocationBuilder().simpleMethod().mock("different mock").toInvoc… in should_not_be_similar_if_mocks_are_different()
104Invocation overloadedInvocation = new InvocationBuilder().method(overloadedMethod).arg(sameArg).to… in should_not_be_similar_if_is_overloaded_but_used_with_the_same_arg()
115Invocation overloadedInvocation = new InvocationBuilder().mock(mock).method(overloadedMethod).arg(… in should_be_similar_if_is_overloaded_but_used_with_different_arg()
123 Invocation invocation = new InvocationBuilder().args("1", 100).toInvocation(); in should_capture_arguments_from_invocation()
[all …]
H A DInvocationMarkerTest.java9 import org.mockito.invocation.Invocation;
23 Invocation i = new InvocationBuilder().toInvocation(); in shouldMarkInvocationAsVerified()
37 Invocation i = new InvocationBuilder().toInvocation(); in shouldCaptureArguments()
38 final AtomicReference<Invocation> box = new AtomicReference<Invocation>(); in shouldCaptureArguments()
40 public void captureArgumentsFrom(Invocation i) { in shouldCaptureArguments()
56 Invocation i = new InvocationBuilder().toInvocation(); in shouldMarkInvocationsAsVerifiedInOrder()
/aosp_15_r20/external/mockito/src/main/java/org/mockito/internal/junit/
H A DStubbingArgMismatches.java8 import org.mockito.invocation.Invocation;
20 …final Map<Invocation, Set<Invocation>> mismatches = new LinkedHashMap<Invocation, Set<Invocation>>…
22 public void add(Invocation invocation, Invocation stubbing) { in add()
23 Set<Invocation> matchingInvocations = mismatches.get(stubbing); in add()
25 matchingInvocations = new LinkedHashSet<Invocation>(); in add()
38 for (Map.Entry<Invocation, Set<Invocation>> m : mismatches.entrySet()) { in format()
40 for (Invocation invocation : m.getValue()) { in format()
/aosp_15_r20/external/clang/lib/Tooling/
H A DTooling.cpp94 clang::CompilerInvocation *Invocation = new clang::CompilerInvocation; in newInvocation() local
96 *Invocation, CC1Args.data() + 1, CC1Args.data() + CC1Args.size(), in newInvocation()
98 Invocation->getFrontendOpts().DisableFree = false; in newInvocation()
99 Invocation->getCodeGenOpts().DisableFree = false; in newInvocation()
100 Invocation->getDependencyOutputOpts() = DependencyOutputOptions(); in newInvocation()
101 return Invocation; in newInvocation()
140 ToolInvocation Invocation(getSyntaxOnlyToolArgs(ToolName, Args, FileNameRef), in runToolOnCodeWithArgs() local
155 return Invocation.run(); in runToolOnCodeWithArgs()
260 std::unique_ptr<clang::CompilerInvocation> Invocation( in run() local
267 Invocation->getPreprocessorOpts().addRemappedFile(It.getKey(), in run()
[all …]
/aosp_15_r20/external/sdk-platform-java/showcase/proto-gapic-showcase-v1beta1/src/main/java/com/google/showcase/v1beta1/
H A DTest.java283 com.google.showcase.v1beta1.Test.Blueprint.Invocation getRequest(); in getRequest()
300 java.util.List<com.google.showcase.v1beta1.Test.Blueprint.Invocation>
309 com.google.showcase.v1beta1.Test.Blueprint.Invocation getAdditionalRequests(int index); in getAdditionalRequests()
428 public static final class Invocation extends class in Test.Blueprint
434 private Invocation(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { in Invocation() method in Test.Blueprint.Invocation
437 private Invocation() { in Invocation() method in Test.Blueprint.Invocation
446 return new Invocation(); in newInstance()
464 …m.google.showcase.v1beta1.Test.Blueprint.Invocation.class, com.google.showcase.v1beta1.Test.Bluepr… in internalGetFieldAccessorTable()
575 if (!(obj instanceof com.google.showcase.v1beta1.Test.Blueprint.Invocation)) { in equals()
578 ….google.showcase.v1beta1.Test.Blueprint.Invocation other = (com.google.showcase.v1beta1.Test.Bluep… in equals()
[all …]
/aosp_15_r20/external/mockito/src/test/java/org/mockito/
H A DStaticMockingExperimentTest.java12 import org.mockito.invocation.Invocation;
61Invocation invocation = Mockito.framework().getInvocationFactory().createInvocation(mock, withSett… in verify_static_method()
72Invocation verification = Mockito.framework().getInvocationFactory().createInvocation(mock, withSe… in verify_static_method()
80Invocation differentArg = Mockito.framework().getInvocationFactory().createInvocation(mock, withSe… in verify_static_method()
89Invocation invocation = Mockito.framework().getInvocationFactory().createInvocation(mock, withSett… in verification_failure_static_method()
95Invocation differentArg = Mockito.framework().getInvocationFactory().createInvocation(mock, withSe… in verification_failure_static_method()
107Invocation invocation = Mockito.framework().getInvocationFactory().createInvocation(mock, withSett… in stubbing_static_method()
119Invocation differentArg = Mockito.framework().getInvocationFactory().createInvocation(mock, withSe… in stubbing_static_method()
130 Invocation invocation = Mockito.framework().getInvocationFactory() in do_answer_stubbing_static_method()
139Invocation differentArg = Mockito.framework().getInvocationFactory().createInvocation(mock, withSe… in do_answer_stubbing_static_method()
[all …]
/aosp_15_r20/external/kotlinx.coroutines/kotlinx-coroutines-debug/src/junit/junit5/
H A DCoroutinesTimeoutExtension.kt90 invocation: InvocationInterceptor.Invocation<T>, in interceptTestClassConstructor()
155 invocation: InvocationInterceptor.Invocation<Void>, in interceptTestMethod()
163 invocation: InvocationInterceptor.Invocation<Void>, in interceptAfterAllMethod()
171 invocation: InvocationInterceptor.Invocation<Void>, in interceptAfterEachMethod()
179 invocation: InvocationInterceptor.Invocation<Void>, in interceptBeforeAllMethod()
187 invocation: InvocationInterceptor.Invocation<Void>, in interceptBeforeEachMethod()
195 invocation: InvocationInterceptor.Invocation<T>, in interceptTestFactoryMethod()
201 invocation: InvocationInterceptor.Invocation<Void>, in interceptTestFactoryMethod()
215 invocation: InvocationInterceptor.Invocation<T>, in interceptMethod()
256 invocation: InvocationInterceptor.Invocation<T>, in interceptNormalMethod()
[all …]
/aosp_15_r20/external/mockito/src/main/java/org/mockito/internal/verification/
H A DDefaultRegisteredInvocations.java10 import org.mockito.invocation.Invocation;
22 private final LinkedList<Invocation> invocations = new LinkedList<Invocation>();
24 public void add(Invocation invocation) { in add()
39 public List<Invocation> getAll() { in getAll()
40 List<Invocation> copiedList; in getAll()
42 copiedList = new LinkedList<Invocation>(invocations) ; in getAll()
60 private static class RemoveToString implements Filter<Invocation> {
61 public boolean isOut(Invocation invocation) { in isOut()
/aosp_15_r20/external/mockito/src/test/java/org/mockito/internal/verification/checkers/
H A DNumberOfInvocationsInOrderCheckerTest.java22 import org.mockito.invocation.Invocation;
33 private List<Invocation> invocations;
65 Invocation first = buildSimpleMethod().toInvocation(); in shouldReportTooLittleInvocations()
66 Invocation second = buildSimpleMethod().toInvocation(); in shouldReportTooLittleInvocations()
81 Invocation invocation = buildSimpleMethod().toInvocation(); in shouldMarkAsVerifiedInOrder()
135 Invocation first = buildSimpleMethod().toInvocation(); in shouldReportWithFirstUndesiredInvocationStackTrace()
136 Invocation second = buildSimpleMethod().toInvocation(); in shouldReportWithFirstUndesiredInvocationStackTrace()
137 Invocation third = buildSimpleMethod().toInvocation(); in shouldReportWithFirstUndesiredInvocationStackTrace()
149 Invocation first = buildSimpleMethod().toInvocation(); in shouldReportTooManyActual()
150 Invocation second = buildSimpleMethod().toInvocation(); in shouldReportTooManyActual()
[all …]
H A DAtLeastXNumberOfInvocationsCheckerTest.java16 import org.mockito.invocation.Invocation;
31 Invocation invocation = new InvocationBuilder().simpleMethod().toInvocation(); in shouldMarkActualInvocationsAsVerifiedInOrder()
32 Invocation invocationTwo = new InvocationBuilder().differentMethod().toInvocation(); in shouldMarkActualInvocationsAsVerifiedInOrder()
45 Invocation invocation = new InvocationBuilder().simpleMethod().toInvocation(); in shouldReportTooLittleInvocationsInOrder()
46 Invocation invocationTwo = new InvocationBuilder().differentMethod().toInvocation(); in shouldReportTooLittleInvocationsInOrder()
62 Invocation invocation = new InvocationBuilder().simpleMethod().toInvocation(); in shouldMarkActualInvocationsAsVerified()
63 Invocation invocationTwo = new InvocationBuilder().differentMethod().toInvocation(); in shouldMarkActualInvocationsAsVerified()
75 Invocation invocation = new InvocationBuilder().simpleMethod().toInvocation(); in shouldReportTooLittleInvocations()
76 Invocation invocationTwo = new InvocationBuilder().differentMethod().toInvocation(); in shouldReportTooLittleInvocations()
H A DNumberOfInvocationsCheckerTest.java23 import org.mockito.invocation.Invocation;
36 private List<Invocation> invocations;
90 Invocation first = buildSimpleMethod().toInvocation(); in shouldReportWithAllInvocationsStackTrace()
91 Invocation second = buildSimpleMethod().toInvocation(); in shouldReportWithAllInvocationsStackTrace()
92 Invocation third = buildSimpleMethod().toInvocation(); in shouldReportWithAllInvocationsStackTrace()
106 Invocation first = buildSimpleMethod().toInvocation(); in shouldReportTooManyActual()
107 Invocation second = buildSimpleMethod().toInvocation(); in shouldReportTooManyActual()
120 Invocation first = buildSimpleMethod().toInvocation(); in shouldReportNeverWantedButInvoked()
135 Invocation invocation = buildSimpleMethod().toInvocation(); in shouldMarkInvocationsAsVerified()
/aosp_15_r20/external/mockito/src/main/java/org/mockito/internal/debugging/
H A DWarningsFinder.java8 import org.mockito.invocation.Invocation;
15 private final List<Invocation> baseUnusedStubs;
18 public WarningsFinder(List<Invocation> unusedStubs, List<InvocationMatcher> allInvocations) { in WarningsFinder()
24 List<Invocation> unusedStubs = new LinkedList<Invocation>(this.baseUnusedStubs); in find()
27 Iterator<Invocation> unusedIterator = unusedStubs.iterator(); in find()
29 Invocation unused = unusedIterator.next(); in find()
41 for (Invocation i : unusedStubs) { in find()
/aosp_15_r20/external/easymock/src/org/easymock/internal/
H A DLastControl.java31 …private static final ThreadLocal<Stack<Invocation>> threadToCurrentInvocation = new ThreadLocal<St…
103 public static Invocation getCurrentInvocation() { in getCurrentInvocation()
104 Stack<Invocation> stack = threadToCurrentInvocation.get(); in getCurrentInvocation()
111 public static void pushCurrentInvocation(Invocation invocation) { in pushCurrentInvocation()
112 Stack<Invocation> stack = threadToCurrentInvocation.get(); in pushCurrentInvocation()
114 stack = new Stack<Invocation>(); in pushCurrentInvocation()
121 Stack<Invocation> stack = threadToCurrentInvocation.get(); in popCurrentInvocation()
/aosp_15_r20/external/mockito/src/test/java/org/mockito/internal/verification/
H A DNoMoreInteractionsTest.java16 import org.mockito.invocation.Invocation;
32 Invocation i = new InvocationBuilder().toInvocation(); in shouldVerifyInOrder()
47 Invocation i = new InvocationBuilder().toInvocation(); in shouldVerifyInOrderAndPass()
60 Invocation i = new InvocationBuilder().seq(1).toInvocation(); in shouldVerifyInOrderMultipleInvoctions()
61 Invocation i2 = new InvocationBuilder().seq(2).toInvocation(); in shouldVerifyInOrderMultipleInvoctions()
74 Invocation i = new InvocationBuilder().seq(1).toInvocation(); in shouldVerifyInOrderMultipleInvoctionsAndThrow()
75 Invocation i2 = new InvocationBuilder().seq(2).toInvocation(); in shouldVerifyInOrderMultipleInvoctionsAndThrow()
110 Invocation i = new InvocationBuilder().mock(mock).toInvocation(); in noMoreInteractionsInOrderExceptionMessageShouldDescribeMock()
/aosp_15_r20/external/mockito/src/main/java/org/mockito/internal/verification/checkers/
H A DMissingInvocationChecker.java21 import org.mockito.invocation.Invocation;
29 …public static void checkMissingInvocation(List<Invocation> invocations, MatchableInvocation wanted… in checkMissingInvocation()
30 List<Invocation> actualInvocations = findInvocations(invocations, wanted); in checkMissingInvocation()
36 Invocation similar = findSimilarInvocation(invocations, wanted); in checkMissingInvocation()
47 …public static void checkMissingInvocation(List<Invocation> invocations, MatchableInvocation wanted… in checkMissingInvocation()
48 List<Invocation> chunk = findAllMatchingUnverifiedChunks(invocations, wanted, context); in checkMissingInvocation()
54 Invocation previousInOrder = findPreviousVerifiedInOrder(invocations, context); in checkMissingInvocation()
/aosp_15_r20/external/googleapis/google/devtools/resultstore/v2/
H A Dinvocation.proto32 // An Invocation typically represents the result of running a tool. Each has a
34 // Invocation contain the bulk of the data.
35 message Invocation { message
37 type: "resultstore.googleapis.com/Invocation"
41 // The resource ID components that identify the Invocation.
43 // The Invocation ID.
51 // The resource ID components that identify the Invocation. They must match
81 // build.log: The primary log for the Invocation.
85 // Summary of aggregate coverage across all Actions in this Invocation.
92 // Invocation. If missing, this data will be populated by the server
[all …]

12345678910>>...19