/external/mockito/src/main/java/org/mockito/internal/invocation/ |
D | InvocationsFinder.java | 13 import org.mockito.invocation.Invocation; 21 public static List<Invocation> findInvocations( in findInvocations() 22 List<Invocation> invocations, MatchableInvocation wanted) { in findInvocations() 26 public static List<Invocation> findAllMatchingUnverifiedChunks( in findAllMatchingUnverifiedChunks() 27 List<Invocation> invocations, in findAllMatchingUnverifiedChunks() 30 List<Invocation> unverified = removeVerifiedInOrder(invocations, orderingContext); in findAllMatchingUnverifiedChunks() 49 public static List<Invocation> findMatchingChunk( in findMatchingChunk() 50 List<Invocation> invocations, in findMatchingChunk() 54 List<Invocation> unverified = removeVerifiedInOrder(invocations, context); in findMatchingChunk() 55 List<Invocation> firstChunk = getFirstMatchingChunk(wanted, unverified); in findMatchingChunk() [all …]
|
D | InvocationMatcher.java | 21 import org.mockito.invocation.Invocation; 31 private final Invocation invocation; 35 public InvocationMatcher(Invocation invocation, List<ArgumentMatcher> matchers) { in InvocationMatcher() 45 public InvocationMatcher(Invocation invocation) { in InvocationMatcher() 49 public static List<InvocationMatcher> createFrom(List<Invocation> invocations) { in createFrom() 51 for (Invocation i : invocations) { in createFrom() 62 public Invocation getInvocation() { in getInvocation() 79 public boolean matches(Invocation candidate) { in matches() 89 public boolean hasSimilarMethod(Invocation candidate) { in hasSimilarMethod() 110 public boolean hasSameMethod(Invocation candidate) { in hasSameMethod() [all …]
|
D | InvocationMarker.java | 10 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() 29 List<Invocation> chunk, MatchableInvocation wanted, InOrderContext context) { in markVerifiedInOrder() 32 for (Invocation i : chunk) { in markVerifiedInOrder()
|
/external/mockito/src/main/java/org/mockito/internal/junit/ |
D | StubbingArgMismatches.java | 12 import org.mockito.invocation.Invocation; 20 final Map<Invocation, Set<Invocation>> mismatches = new LinkedHashMap<>(); 22 public void add(Invocation invocation, Invocation stubbing) { in add() 23 Set<Invocation> matchingInvocations = in add() 25 stubbing, (Invocation k) -> new LinkedHashSet<Invocation>()); in add() 36 for (Map.Entry<Invocation, Set<Invocation>> m : mismatches.entrySet()) { in format() 38 for (Invocation invocation : m.getValue()) { in format()
|
/external/mockito/src/test/java/org/mockito/internal/invocation/ |
D | InvocationsFinderTest.java | 22 import org.mockito.invocation.Invocation; 29 private LinkedList<Invocation> invocations = new LinkedList<Invocation>(); 30 private Invocation simpleMethodInvocation; 31 private Invocation simpleMethodInvocationTwo; 32 private Invocation differentMethodInvocation; 55 List<Invocation> actual = in shouldFindActualInvocations() 132 Invocation overloadedSimpleMethod = in shouldFindFirstSimilarInvocationByName() 135 Invocation found = in shouldFindFirstSimilarInvocationByName() 143 Invocation overloadedDifferentMethod = in shouldFindInvocationWithTheSameMethod() 148 Invocation found = in shouldFindInvocationWithTheSameMethod() [all …]
|
D | InvocationMatcherTest.java | 29 import org.mockito.invocation.Invocation; 46 Invocation invocation = new InvocationBuilder().toInvocation(); in should_be_a_citizen_of_hashes() 47 Invocation invocationTwo = new InvocationBuilder().args("blah").toInvocation(); in should_be_a_citizen_of_hashes() 82 Invocation same = new InvocationBuilder().mock(mock).simpleMethod().toInvocation(); in should_know_if_is_similar_to() 85 Invocation different = new InvocationBuilder().mock(mock).differentMethod().toInvocation(); in should_know_if_is_similar_to() 91 Invocation verified = new InvocationBuilder().simpleMethod().verified().toInvocation(); in should_not_be_similar_to_verified_invocation() 97 Invocation onDifferentMock = in should_not_be_similar_if_mocks_are_different() 112 Invocation overloadedInvocation = in should_not_be_similar_if_is_overloaded_but_used_with_the_same_arg() 125 Invocation overloadedInvocation = in should_be_similar_if_is_overloaded_but_used_with_different_arg() 138 Invocation invocation = new InvocationBuilder().args("1", 100).toInvocation(); in should_capture_arguments_from_invocation() [all …]
|
D | InvocationMarkerTest.java | 14 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() 41 public void captureArgumentsFrom(Invocation i) { in shouldCaptureArguments() 58 Invocation i = new InvocationBuilder().toInvocation(); in shouldMarkInvocationsAsVerifiedInOrder()
|
/external/clang/include/clang/Frontend/ |
D | CompilerInstance.h | 73 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 …]
|
/external/mockito/src/test/java/org/mockito/internal/verification/checkers/ |
D | AtLeastXNumberOfInvocationsCheckerTest.java | 19 import org.mockito.invocation.Invocation; 27 Invocation invocation = new InvocationBuilder().simpleMethod().toInvocation(); in shouldMarkActualInvocationsAsVerifiedInOrder() 28 Invocation invocationTwo = new InvocationBuilder().differentMethod().toInvocation(); in shouldMarkActualInvocationsAsVerifiedInOrder() 42 Invocation invocation = new InvocationBuilder().simpleMethod().toInvocation(); in shouldReportTooFewInvocationsInOrder() 43 Invocation invocationTwo = new InvocationBuilder().differentMethod().toInvocation(); in shouldReportTooFewInvocationsInOrder() 61 Invocation invocation = new InvocationBuilder().simpleMethod().toInvocation(); in shouldMarkActualInvocationsAsVerified() 62 Invocation invocationTwo = new InvocationBuilder().differentMethod().toInvocation(); in shouldMarkActualInvocationsAsVerified() 75 Invocation invocation = new InvocationBuilder().simpleMethod().toInvocation(); in shouldReportTooFewInvocations() 76 Invocation invocationTwo = new InvocationBuilder().differentMethod().toInvocation(); in shouldReportTooFewInvocations()
|
D | NumberOfInvocationsInOrderCheckerTest.java | 23 import org.mockito.invocation.Invocation; 29 private List<Invocation> invocations; 57 Invocation first = buildSimpleMethod().toInvocation(); in shouldReportTooFewInvocations() 58 Invocation second = buildSimpleMethod().toInvocation(); in shouldReportTooFewInvocations() 75 Invocation invocation = buildSimpleMethod().toInvocation(); in shouldMarkAsVerifiedInOrder() 136 Invocation first = buildSimpleMethod().toInvocation(); in shouldReportWithFirstUndesiredInvocationStackTrace() 137 Invocation second = buildSimpleMethod().toInvocation(); in shouldReportWithFirstUndesiredInvocationStackTrace() 138 Invocation third = buildSimpleMethod().toInvocation(); in shouldReportWithFirstUndesiredInvocationStackTrace() 154 Invocation first = buildSimpleMethod().toInvocation(); in shouldReportTooManyActual() 155 Invocation second = buildSimpleMethod().toInvocation(); in shouldReportTooManyActual() [all …]
|
D | NumberOfInvocationsCheckerTest.java | 26 import org.mockito.invocation.Invocation; 35 private List<Invocation> invocations; 92 Invocation first = buildSimpleMethod().toInvocation(); in shouldReportWithAllInvocationsStackTrace() 93 Invocation second = buildSimpleMethod().toInvocation(); in shouldReportWithAllInvocationsStackTrace() 94 Invocation third = buildSimpleMethod().toInvocation(); in shouldReportWithAllInvocationsStackTrace() 113 Invocation first = buildSimpleMethod().toInvocation(); in shouldReportTooManyActual() 114 Invocation second = buildSimpleMethod().toInvocation(); in shouldReportTooManyActual() 129 Invocation invocation = buildSimpleMethodWithArgs("arg1").toInvocation(); in shouldReportNeverWantedButInvokedWithArgs() 148 Invocation first = buildSimpleMethodWithArgs("arg1").toInvocation(); in shouldReportNeverWantedButInvokedWithArgs_multipleInvocations() 149 Invocation second = buildSimpleMethodWithArgs("arg1").toInvocation(); in shouldReportNeverWantedButInvokedWithArgs_multipleInvocations() [all …]
|
/external/mockito/src/main/java/org/mockito/internal/verification/ |
D | DefaultRegisteredInvocations.java | 15 import org.mockito.invocation.Invocation; 20 private final LinkedList<Invocation> invocations = new LinkedList<>(); 23 public void add(Invocation invocation) { in add() 41 public List<Invocation> getAll() { in getAll() 42 List<Invocation> copiedList; in getAll() 64 private static class RemoveToString implements Filter<Invocation> { 66 public boolean isOut(Invocation invocation) { in isOut()
|
D | AtMost.java | 16 import org.mockito.invocation.Invocation; 33 List<Invocation> invocations = data.getAllInvocations(); in verify() 36 List<Invocation> found = findInvocations(invocations, wanted); in verify() 46 private void removeAlreadyVerified(List<Invocation> invocations) { in removeAlreadyVerified() 47 for (Iterator<Invocation> iterator = invocations.iterator(); iterator.hasNext(); ) { in removeAlreadyVerified() 48 Invocation i = iterator.next(); in removeAlreadyVerified()
|
/external/mockito/src/main/java/org/mockito/internal/verification/checkers/ |
D | MissingInvocationChecker.java | 23 import org.mockito.invocation.Invocation; 32 List<Invocation> invocations, MatchableInvocation wanted) { in checkMissingInvocation() 33 List<Invocation> actualInvocations = findInvocations(invocations, wanted); in checkMissingInvocation() 39 Invocation similar = findSimilarInvocation(invocations, wanted); in checkMissingInvocation() 54 new ListUtil.Converter<Invocation, Location>() { in checkMissingInvocation() 56 public Location convert(Invocation invocation) { in checkMissingInvocation() 66 List<Invocation> invocations, MatchableInvocation wanted, InOrderContext context) { in checkMissingInvocation() 67 List<Invocation> chunk = findAllMatchingUnverifiedChunks(invocations, wanted, context); in checkMissingInvocation() 73 Invocation previousInOrder = findPreviousVerifiedInOrder(invocations, context); in checkMissingInvocation()
|
/external/mockito/src/main/java/org/mockito/internal/debugging/ |
D | WarningsFinder.java | 12 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<>(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()
|
/external/mockito/src/test/java/org/mockito/ |
D | StaticMockingExperimentTest.java | 25 import org.mockito.invocation.Invocation; 63 Invocation invocation = in verify_static_method() 84 Invocation verification = in verify_static_method() 100 Invocation differentArg = in verify_static_method() 116 Invocation invocation = in verification_failure_static_method() 129 Invocation differentArg = in verification_failure_static_method() 149 Invocation invocation = in stubbing_static_method() 168 Invocation differentArg = in stubbing_static_method() 186 Invocation invocation = in do_answer_stubbing_static_method() 202 Invocation differentArg = in do_answer_stubbing_static_method() [all …]
|
/external/kotlinx.coroutines/kotlinx-coroutines-debug/src/junit/junit5/ |
D | CoroutinesTimeoutExtension.kt | 90 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() 219 invocation: InvocationInterceptor.Invocation<T>, in interceptMethod() 260 invocation: InvocationInterceptor.Invocation<T>, in interceptNormalMethod() [all …]
|
/external/clang/unittests/Frontend/ |
D | CodeGenActionTest.cpp | 43 CompilerInvocation *Invocation = new CompilerInvocation; in TEST() local 44 Invocation->getPreprocessorOpts().addRemappedFile( in TEST() 47 Invocation->getFrontendOpts().Inputs.push_back( in TEST() 49 Invocation->getFrontendOpts().ProgramAction = EmitLLVM; in TEST() 50 Invocation->getTargetOpts().Triple = "i386-unknown-linux-gnu"; in TEST() 52 Compiler.setInvocation(Invocation); in TEST()
|
/external/mockito/src/main/java/org/mockito/invocation/ |
D | MatchableInvocation.java | 30 Invocation getInvocation(); in getInvocation() 47 boolean matches(Invocation candidate); in matches() 55 boolean hasSimilarMethod(Invocation candidate); in hasSimilarMethod() 62 boolean hasSameMethod(Invocation candidate); in hasSameMethod() 73 void captureArgumentsFrom(Invocation invocation); in captureArgumentsFrom()
|
/external/clang/lib/Tooling/ |
D | Tooling.cpp | 94 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 …]
|
/external/mockito/src/main/java/org/mockito/internal/invocation/finder/ |
D | VerifiableInvocationsFinder.java | 11 import org.mockito.invocation.Invocation; 20 public static List<Invocation> find(List<?> mocks) { in find() 21 List<Invocation> invocations = AllInvocationsFinder.find(mocks); in find() 25 private static class RemoveIgnoredForVerification implements Filter<Invocation> { 27 public boolean isOut(Invocation invocation) { in isOut()
|
/external/mockito/src/test/java/org/mockito/internal/verification/ |
D | OnlyTest.java | 17 import org.mockito.invocation.Invocation; 25 private final Invocation invocation; 28 public VerificationDataStub(InvocationMatcher wanted, Invocation invocation) { in VerificationDataStub() 33 public List<Invocation> getAllInvocations() { in getAllInvocations() 50 Invocation invocation = new InvocationBuilder().toInvocation(); in shouldMarkAsVerified() 63 Invocation invocation = new InvocationBuilder().toInvocation(); in shouldNotMarkAsVerifiedWhenAssertionFailed()
|
D | NoMoreInteractionsTest.java | 21 import org.mockito.invocation.Invocation; 33 Invocation i = new InvocationBuilder().toInvocation(); in shouldVerifyInOrder() 49 Invocation i = new InvocationBuilder().toInvocation(); in shouldVerifyInOrderAndPass() 62 Invocation i = new InvocationBuilder().seq(1).toInvocation(); in shouldVerifyInOrderMultipleInvoctions() 63 Invocation i2 = new InvocationBuilder().seq(2).toInvocation(); in shouldVerifyInOrderMultipleInvoctions() 76 Invocation i = new InvocationBuilder().seq(1).toInvocation(); in shouldVerifyInOrderMultipleInvoctionsAndThrow() 77 Invocation i2 = new InvocationBuilder().seq(2).toInvocation(); in shouldVerifyInOrderMultipleInvoctionsAndThrow() 112 Invocation i = new InvocationBuilder().mock(mock).toInvocation(); in noMoreInteractionsInOrderExceptionMessageShouldDescribeMock()
|
/external/mockito/src/main/java/org/mockito/internal/reporting/ |
D | SmartPrinter.java | 12 import org.mockito.invocation.Invocation; 27 Invocation actual, in SmartPrinter() 38 List<Invocation> allActualInvocations, in SmartPrinter() 50 for (Invocation actual : allActualInvocations) { in SmartPrinter() 65 MatchableInvocation wanted, List<Invocation> allActualInvocations) { in isMultiLine() 68 for (Invocation invocation : allActualInvocations) { in isMultiLine()
|
/external/easymock/src/org/easymock/internal/ |
D | LastControl.java | 31 …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()
|