Giter Site home page Giter Site logo

Adding line number of caller about mock HOT 5 CLOSED

golang avatar golang commented on August 28, 2024
Adding line number of caller

from mock.

Comments (5)

dsymonds avatar dsymonds commented on August 28, 2024 1

There isn't a way, but that's a perfectly reasonable request. I'll see if I can come up with something.

from mock.

ooesili avatar ooesili commented on August 28, 2024 1

I made #25 to do this.

Actually... it doesn't do exactly what you asked for, but it does add filenames and line numbers to errors, which seems to suffice.

from mock.

zwass avatar zwass commented on August 28, 2024

@dsymonds Any progress on this? It would be hugely helpful to see both where an expected call was indicated that did not occur, and where a call was made that was not expected. Either one would be a big win but both would be amazing.

from mock.

ybbus avatar ybbus commented on August 28, 2024

Would also like to see this

from mock.

balshetzer avatar balshetzer commented on August 28, 2024

PR #25 was pulled in via #97 so this issue should be resolved. Please re-open if I misunderstood.

from mock.

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.