Coder Social home page Coder Social logo

Comments (5)

matanlurey avatar matanlurey commented on July 2, 2024

@TedSander tried to type this ArgMatcher internally - there are some tests that still use Dart 1.x semantics internally that fail with this change, but it looks like Dart 2.x works fine. We'll hold off on changing this for a little bit.

from mockito.

TedSander avatar TedSander commented on July 2, 2024

Note this also applies to any, captureThat, and captureAny. Possibly some others.

from mockito.

TedSander avatar TedSander commented on July 2, 2024

So currently this breaks about 8% of tests using mockito internally. We would need to clean that up first.

from mockito.

srawlins avatar srawlins commented on July 2, 2024

I do intend to make Mockito a 2.0-semantics-only package soon, so that typed() is @deprecated and a no-op, and any and argThat do what typed does today. I'll send a PR this week maybe...

We'll have some cleanup because the new semantics will not allow null next to any any argThat arguments, which is a restriction on typed right now. (i.e. It's a breaking change.)

from mockito.

srawlins avatar srawlins commented on July 2, 2024

OK these signatures have changed, and all the any|argThat|captureAny|anyNamed|... API is typed to return Null. I've played around with --no-implicit-casts and --no-implicit-dynamic, and I think Mockito's API should play well.

from mockito.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.