/external/mockito/src/org/mockito/internal/matchers/ |
D | ArrayEquals.java | 17 public ArrayEquals(Object wanted) { in ArrayEquals() argument 18 super(wanted); in ArrayEquals() 22 Object wanted = getWanted(); in matches() local 23 if (wanted == null || actual == null) { in matches() 25 } else if (wanted instanceof boolean[] && actual instanceof boolean[]) { in matches() 26 return Arrays.equals((boolean[]) wanted, (boolean[]) actual); in matches() 27 } else if (wanted instanceof byte[] && actual instanceof byte[]) { in matches() 28 return Arrays.equals((byte[]) wanted, (byte[]) actual); in matches() 29 } else if (wanted instanceof char[] && actual instanceof char[]) { in matches() 30 return Arrays.equals((char[]) wanted, (char[]) actual); in matches() [all …]
|
D | Equals.java | 17 private final Object wanted; field in Equals 19 public Equals(Object wanted) { in Equals() argument 20 this.wanted = wanted; in Equals() 24 return Equality.areEqual(this.wanted, actual); in matches() 28 description.appendText(describe(wanted)); in describeTo() 39 if (wanted instanceof String) { in quoting() 41 } else if (wanted instanceof Character) { in quoting() 49 return wanted; in getWanted() 58 …return this.wanted == null && other.wanted == null || this.wanted != null && this.wanted.equals(ot… in equals() 69 … description.appendText(describe("("+ wanted.getClass().getSimpleName() +") " + wanted)); in withExtraTypeInfo() [all …]
|
D | Same.java | 17 private final Object wanted; field in Same 19 public Same(Object wanted) { in Same() argument 20 this.wanted = wanted; in Same() 24 return wanted == actual; in matches() 30 description.appendText("" + wanted); in describeTo() 36 if (wanted instanceof String) { in appendQuoting() 38 } else if (wanted instanceof Character) { in appendQuoting()
|
D | EqualsWithDelta.java | 17 private final Number wanted; field in EqualsWithDelta 22 this.wanted = value; in EqualsWithDelta() 28 if (wanted == null ^ actual == null) { in matches() 32 if (wanted == null && actual == null) { in matches() 36 return wanted.doubleValue() - delta.doubleValue() <= actualNumber.doubleValue() in matches() 37 && actualNumber.doubleValue() <= wanted.doubleValue() in matches() 42 description.appendText("eq(" + wanted + ", " + delta + ")"); in describeTo()
|
D | CompareTo.java | 13 private final Comparable<T> wanted; field in CompareTo 16 this.wanted = value; in CompareTo() 26 return matchResult(((Comparable) actual).compareTo(wanted)); in matches() 30 description.appendText(getName() + "(" + wanted + ")"); in describeTo()
|
/external/mockito/src/org/mockito/internal/invocation/ |
D | InvocationsFinder.java | 19 … public List<Invocation> findInvocations(List<Invocation> invocations, InvocationMatcher wanted) { in findInvocations() argument 20 return ListUtil.filter(invocations, new RemoveNotMatching(wanted)); in findInvocations() 23 …MatchingUnverifiedChunks(List<Invocation> invocations, InvocationMatcher wanted, InOrderContext or… in findAllMatchingUnverifiedChunks() argument 25 return ListUtil.filter(unverified, new RemoveNotMatching(wanted)); in findAllMatchingUnverifiedChunks() 43 …ation> findMatchingChunk(List<Invocation> invocations, InvocationMatcher wanted, int wantedCount, … in findMatchingChunk() argument 45 List<Invocation> firstChunk = getFirstMatchingChunk(wanted, unverified); in findMatchingChunk() 48 return this.findAllMatchingUnverifiedChunks(invocations, wanted, context); in findMatchingChunk() 54 …private List<Invocation> getFirstMatchingChunk(InvocationMatcher wanted, List<Invocation> unverifi… in getFirstMatchingChunk() argument 57 if (wanted.matches(invocation)) { in getFirstMatchingChunk() 66 …ingUnverifiedInvocation( List<Invocation> invocations, InvocationMatcher wanted, InOrderContext co… in findFirstMatchingUnverifiedInvocation() argument [all …]
|
D | InvocationMarker.java | 14 public void markVerified(List<Invocation> invocations, CapturesArgumensFromInvocation wanted) { in markVerified() argument 16 markVerified(invocation, wanted); in markVerified() 20 public void markVerified(Invocation invocation, CapturesArgumensFromInvocation wanted) { in markVerified() argument 22 wanted.captureArgumentsFrom(invocation); in markVerified() 25 …public void markVerifiedInOrder(List<Invocation> chunk, CapturesArgumensFromInvocation wanted, InO… in markVerifiedInOrder() argument 26 markVerified(chunk, wanted); in markVerifiedInOrder()
|
/external/mockito/src/org/mockito/exceptions/ |
D | Reporter.java | 289 public void argumentsAreDifferent(String wanted, String actual, Location actualLocation) { in argumentsAreDifferent() argument 291 wanted, in argumentsAreDifferent() 300 throw JUnitTool.createArgumentsAreDifferentException(message, wanted, actual); in argumentsAreDifferent() 306 public void wantedButNotInvoked(DescribedInvocation wanted) { in wantedButNotInvoked() argument 307 throw new WantedButNotInvoked(createWantedButNotInvokedMessage(wanted)); in wantedButNotInvoked() 310 …public void wantedButNotInvoked(DescribedInvocation wanted, List<? extends DescribedInvocation> in… in wantedButNotInvoked() argument 325 String message = createWantedButNotInvokedMessage(wanted); in wantedButNotInvoked() 329 private String createWantedButNotInvokedMessage(DescribedInvocation wanted) { in createWantedButNotInvokedMessage() argument 332 wanted.toString(), in createWantedButNotInvokedMessage() 338 … public void wantedButNotInvokedInOrder(DescribedInvocation wanted, DescribedInvocation previous) { in wantedButNotInvokedInOrder() argument [all …]
|
/external/mockito/src/org/mockito/internal/verification/ |
D | VerificationDataImpl.java | 18 private final InvocationMatcher wanted; field in VerificationDataImpl 21 public VerificationDataImpl(InvocationContainer invocations, InvocationMatcher wanted) { in VerificationDataImpl() argument 23 this.wanted = wanted; in VerificationDataImpl() 32 return wanted; in getWanted() 36 if (wanted == null) { in assertWantedIsVerifiable() 40 if (o.isToString(wanted.getMethod())) { in assertWantedIsVerifiable()
|
D | AtMost.java | 33 InvocationMatcher wanted = data.getWanted(); in verify() local 36 List<Invocation> found = finder.findInvocations(invocations, wanted); in verify() 42 invocationMarker.markVerified(found, wanted); in verify()
|
D | Calls.java | 36 InvocationMatcher wanted = data.getWanted(); in verifyInOrder() local 39 missingInvocation.check( allInvocations, wanted, this, data.getOrderingContext()); in verifyInOrder() 41 numberOfCalls.check( allInvocations, wanted, wantedCount, data.getOrderingContext()); in verifyInOrder()
|
D | AtLeast.java | 45 InvocationMatcher wanted = data.getWanted(); in verifyInOrder() local 51 missingInvocation.check(allInvocations, wanted, this, data.getOrderingContext()); in verifyInOrder() 54 numberOfCalls.check(allInvocations, wanted, wantedCount); in verifyInOrder()
|
D | Times.java | 44 InvocationMatcher wanted = data.getWanted(); in verifyInOrder() local 48 missingInvocation.check(allInvocations, wanted, this, data.getOrderingContext()); in verifyInOrder() 51 numberOfCalls.check(allInvocations, wanted, wantedCount, data.getOrderingContext()); in verifyInOrder()
|
/external/mockito/src/org/mockito/internal/verification/checkers/ |
D | MissingInvocationInOrderChecker.java | 33 …public void check(List<Invocation> invocations, InvocationMatcher wanted, VerificationMode mode, I… in check() argument 34 … List<Invocation> chunk = finder.findAllMatchingUnverifiedChunks(invocations, wanted, context); in check() 49 List<Invocation> actualInvocations = finder.findInvocations(invocations, wanted); in check() 51 Invocation similar = finder.findSimilarInvocation(invocations, wanted); in check() 54 … new ArgumentMatchingTool().getSuspiciouslyNotMatchingArgsIndexes(wanted.getMatchers(), in check() 56 … SmartPrinter smartPrinter = new SmartPrinter(wanted, similar, indicesOfSimilarMatchingArguments); in check() 59 reporter.wantedButNotInvoked(wanted); in check() 63 reporter.wantedButNotInvokedInOrder(wanted, previousInOrder); in check()
|
D | MissingInvocationChecker.java | 31 public void check(List<Invocation> invocations, InvocationMatcher wanted) { in check() argument 32 List<Invocation> actualInvocations = finder.findInvocations(invocations, wanted); in check() 35 Invocation similar = finder.findSimilarInvocation(invocations, wanted); in check() 38 …piciousArgs = argumentMatchingTool.getSuspiciouslyNotMatchingArgsIndexes(wanted.getMatchers(), sim… in check() 39 … SmartPrinter smartPrinter = new SmartPrinter(wanted, similar, indexesOfSuspiciousArgs); in check() 42 reporter.wantedButNotInvoked(wanted, invocations); in check()
|
D | NumberOfInvocationsChecker.java | 33 public void check(List<Invocation> invocations, InvocationMatcher wanted, int wantedCount) { in check() argument 34 List<Invocation> actualInvocations = finder.findInvocations(invocations, wanted); in check() 39 …reporter.tooLittleActualInvocations(new Discrepancy(wantedCount, actualCount), wanted, lastInvocat… in check() 42 reporter.neverWantedButInvoked(wanted, firstUndesired); in check() 45 reporter.tooManyActualInvocations(wantedCount, actualCount, wanted, firstUndesired); in check() 48 invocationMarker.markVerified(actualInvocations, wanted); in check()
|
D | NumberOfInvocationsInOrderChecker.java | 34 …public void check(List<Invocation> invocations, InvocationMatcher wanted, int wantedCount, InOrder… in check() argument 35 … List<Invocation> chunk = finder.findMatchingChunk(invocations, wanted, wantedCount, context); in check() 41 …oLittleActualInvocationsInOrder(new Discrepancy(wantedCount, actualCount), wanted, lastInvocation); in check() 44 … reporter.tooManyActualInvocationsInOrder(wantedCount, actualCount, wanted, firstUndesired); in check() 47 invocationMarker.markVerifiedInOrder(chunk, wanted, context); in check()
|
D | AtLeastXNumberOfInvocationsChecker.java | 23 public void check(List<Invocation> invocations, InvocationMatcher wanted, int wantedCount) { in check() argument 24 List<Invocation> actualInvocations = finder.findInvocations(invocations, wanted); in check() 29 …ittleActualInvocations(new AtLeastDiscrepancy(wantedCount, actualCount), wanted, lastLocation); … in check() 32 invocationMarker.markVerified(actualInvocations, wanted); in check()
|
D | AtLeastXNumberOfInvocationsInOrderChecker.java | 29 public void check(List<Invocation> invocations, InvocationMatcher wanted, int wantedCount) { in check() argument 30 …List<Invocation> chunk = finder.findAllMatchingUnverifiedChunks(invocations, wanted, orderingConte… in check() 36 …leActualInvocationsInOrder(new AtLeastDiscrepancy(wantedCount, actualCount), wanted, lastLocation); in check() 39 invocationMarker.markVerifiedInOrder(chunk, wanted, orderingContext); in check()
|
D | NonGreedyNumberOfInvocationsInOrderChecker.java | 35 …public void check(List<Invocation> invocations, InvocationMatcher wanted, int wantedCount, InOrder… in check() argument 39 … Invocation next = finder.findFirstMatchingUnverifiedInvocation( invocations, wanted, context ); in check() 41 …ooLittleActualInvocationsInOrder(new Discrepancy(wantedCount, actualCount), wanted, lastLocation ); in check() 43 marker.markVerified( next, wanted ); in check()
|
/external/mockito/src/org/mockito/internal/matchers/apachecommons/ |
D | ReflectionEquals.java | 15 private final Object wanted; field in ReflectionEquals 18 public ReflectionEquals(Object wanted, String... excludeFields) { in ReflectionEquals() argument 19 this.wanted = wanted; in ReflectionEquals() 24 return EqualsBuilder.reflectionEquals(wanted, actual, excludeFields); in matches() 28 description.appendText("refEq(" + wanted + ")"); in describeTo()
|
/external/mockito/src/org/mockito/internal/reporting/ |
D | SmartPrinter.java | 18 private final String wanted; field in SmartPrinter 21 …public SmartPrinter(InvocationMatcher wanted, Invocation actual, Integer ... indexesOfMatchersToBe… in SmartPrinter() argument 23 … printSettings.setMultiline(wanted.toString().contains("\n") || actual.toString().contains("\n")); in SmartPrinter() 26 this.wanted = printSettings.print(wanted); in SmartPrinter() 31 return wanted; in getWanted()
|
/external/mockito/src/org/mockito/internal/verification/api/ |
D | VerificationDataInOrderImpl.java | 16 private final InvocationMatcher wanted; field in VerificationDataInOrderImpl 18 …ataInOrderImpl(InOrderContext inOrder, List<Invocation> allInvocations, InvocationMatcher wanted) { in VerificationDataInOrderImpl() argument 21 this.wanted = wanted; in VerificationDataInOrderImpl() 33 return wanted; in getWanted()
|
/external/ppp/pppd/plugins/pppoatm/ |
D | ans.c | 41 static int ans(const char *text,int wanted,void *result,int res_len) in ans() argument 50 if ((answer_len = res_search(text,C_IN,wanted,answer,MAX_ANSWER)) < 0) in ans() 68 if (GET16(pos) != wanted || GET16(pos+2) != C_IN) return TRY_OTHER; in ans() 86 if (GET16(data-10) != wanted || GET16(data-8) != C_IN || !--data_len) in ans() 88 switch (wanted) { in ans()
|
/external/autotest/client/site_tests/kernel_ConfigVerify/ |
D | kernel_ConfigVerify.py | 179 wanted = '65536' 183 wanted = '32768' 184 config.has_value('DEFAULT_MMAP_MIN_ADDR', [wanted])
|