Home
last modified time | relevance | path

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

12345678910>>...14

/external/mockito/src/main/java/org/mockito/internal/invocation/
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 …]
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 …]
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()
/external/llvm-project/clang/unittests/Frontend/
DCompilerInvocationTest.cpp29 CompilerInvocation Invocation; member in __anon3ef532710111::CommandLineTest
47 CompilerInvocation::CreateFromArgs(Invocation, Args, *Diags); in TEST_F()
50 ASSERT_TRUE(Invocation.getFrontendOpts().UseTemporary); in TEST_F()
52 Invocation.generateCC1CommandLine(GeneratedArgs, *this); in TEST_F()
60 CompilerInvocation::CreateFromArgs(Invocation, Args, *Diags); in TEST_F()
63 ASSERT_FALSE(Invocation.getFrontendOpts().UseTemporary); in TEST_F()
65 Invocation.generateCC1CommandLine(GeneratedArgs, *this); in TEST_F()
73 CompilerInvocation::CreateFromArgs(Invocation, Args, *Diags); in TEST_F()
77 ASSERT_TRUE(Invocation.getFrontendOpts().UseTemporary); in TEST_F()
83 CompilerInvocation::CreateFromArgs(Invocation, Args, *Diags); in TEST_F()
[all …]
DOutputStreamTest.cpp25 auto Invocation = std::make_shared<CompilerInvocation>(); in TEST() local
26 Invocation->getPreprocessorOpts().addRemappedFile( in TEST()
28 Invocation->getFrontendOpts().Inputs.push_back( in TEST()
30 Invocation->getFrontendOpts().ProgramAction = EmitBC; in TEST()
31 Invocation->getTargetOpts().Triple = "i386-unknown-linux-gnu"; in TEST()
39 Compiler.setInvocation(std::move(Invocation)); in TEST()
49 auto Invocation = std::make_shared<CompilerInvocation>(); in TEST() local
50 Invocation->getPreprocessorOpts().addRemappedFile( in TEST()
52 Invocation->getFrontendOpts().Inputs.push_back( in TEST()
54 Invocation->getFrontendOpts().ProgramAction = EmitBC; in TEST()
[all …]
DFrontendActionTest.cpp176 auto Invocation = std::make_shared<CompilerInvocation>(); in TEST() local
177 Invocation->getPreprocessorOpts().addRemappedFile( in TEST()
180 Invocation->getFrontendOpts().Inputs.push_back( in TEST()
182 Invocation->getFrontendOpts().ProgramAction = frontend::ParseSyntaxOnly; in TEST()
183 Invocation->getTargetOpts().Triple = "i386-unknown-linux-gnu"; in TEST()
185 Compiler.setInvocation(std::move(Invocation)); in TEST()
235 auto Invocation = std::make_shared<CompilerInvocation>(); in TEST() local
236 Invocation->getLangOpts()->CPlusPlus = true; in TEST()
237 Invocation->getPreprocessorOpts().addRemappedFile( in TEST()
241 Invocation->getFrontendOpts().Inputs.push_back( in TEST()
[all …]
DCodeGenActionTest.cpp44 auto Invocation = std::make_shared<CompilerInvocation>(); in TEST() local
45 Invocation->getPreprocessorOpts().addRemappedFile( in TEST()
48 Invocation->getFrontendOpts().Inputs.push_back( in TEST()
50 Invocation->getFrontendOpts().ProgramAction = EmitLLVM; in TEST()
51 Invocation->getTargetOpts().Triple = "i386-unknown-linux-gnu"; in TEST()
53 Compiler.setInvocation(std::move(Invocation)); in TEST()
/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/
Dobjc-nsinvocation-argument-lifetime.m22 void foo(NSInvocation *Invocation) {
38 [Invocation getArgument:&Arg2 atIndex:2];
39 [Invocation getArgument:&IntVar atIndex:2];
41 [Invocation getArgument:&Arg3 atIndex:3];
44 [Invocation getArgument:&Arg4 atIndex:4];
47 [Invocation getArgument:&Arg5 atIndex:5];
50 [Invocation getArgument:&BlockArg1 atIndex:6];
53 [Invocation getArgument:&BlockArg2 atIndex:6];
55 [Invocation getReturnValue:&ReturnValue];
58 [Invocation getArgument:(void *)0 atIndex:6];
[all …]
/external/mockito/src/main/java/org/mockito/internal/junit/
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()
/external/mockito/src/test/java/org/mockito/internal/invocation/
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 …]
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 …]
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()
/external/mockito/src/main/java/org/mockito/internal/verification/
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()
/external/clang/include/clang/Frontend/
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 …]
/external/llvm-project/clang/include/clang/Frontend/
DCompilerInstance.h74 std::shared_ptr<CompilerInvocation> Invocation; variable
230 bool hasInvocation() const { return Invocation != nullptr; } in hasInvocation()
233 assert(Invocation && "Compiler instance has no invocation!"); in getInvocation()
234 return *Invocation; in getInvocation()
254 return Invocation->getAnalyzerOpts(); in getAnalyzerOpts()
258 return Invocation->getCodeGenOpts(); in getCodeGenOpts()
261 return Invocation->getCodeGenOpts(); in getCodeGenOpts()
265 return Invocation->getDependencyOutputOpts(); in getDependencyOutputOpts()
268 return Invocation->getDependencyOutputOpts(); in getDependencyOutputOpts()
272 return Invocation->getDiagnosticOpts(); in getDiagnosticOpts()
[all …]
/external/mockito/src/main/java/org/mockito/internal/debugging/
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()
/external/mockito/src/test/java/org/mockito/internal/verification/checkers/
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()
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 …]
/external/mockito/src/test/java/org/mockito/
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 …]
/external/clang/unittests/Frontend/
DCodeGenActionTest.cpp43 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/
DMatchableInvocation.java30 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/mockito/src/main/java/org/mockito/internal/invocation/finder/
DAllInvocationsFinder.java12 import org.mockito.invocation.Invocation;
26 public static List<Invocation> find(Iterable<?> mocks) { in find()
27 Set<Invocation> invocationsInOrder = new TreeSet<Invocation>(new InvocationComparator()); in find()
29 … Collection<Invocation> fromSingleMock = new DefaultMockingDetails(mock).getInvocations(); in find()
33 return new LinkedList<Invocation>(invocationsInOrder); in find()
DVerifiableInvocationsFinder.java10 import org.mockito.invocation.Invocation;
21 public static List<Invocation> find(List<?> mocks) { in find()
22 List<Invocation> invocations = AllInvocationsFinder.find(mocks); in find()
26 private static class RemoveIgnoredForVerification implements Filter<Invocation>{
27 public boolean isOut(Invocation invocation) { in isOut()
/external/clang/lib/Tooling/
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 …]
/external/mockito/src/main/java/org/mockito/internal/verification/checkers/
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()

12345678910>>...14