Coder Social home page Coder Social logo

googlemock's People

googlemock's Issues

Need to extend .WithArguments to allow selection of arguments

Currently ON_CALL() and EXPECT_CALL() accepts a
.WithArguments(tuple_matcher) clause for specifying constraints on multiple
arguments, but it's not very easy to use.  The proposal:

- Allow optional template arguments to select the function arguments that
will participate in the matching, ala the WithArgs(callable) action.
- Allow the clause to be used more than once in an expectation.

For example,

  ON_CALL(foo, Bar(_, _, _))
      .WithArguments(A())
      .WithArguments<0, 2>(B())
      .WithArguments<2, 1>(C());

says that:

  - argument 0, 1, and 2 should match matcher A(),
  - argument 0 and 2 should match matcher B(), and
  - argument 2 and 1 should match matcher C().

One use case is that often a function passes a pointer to a buffer in one
argument and the size of the buffer in another argument, and we may want to
verify that the contents of the buffer are expected.

Original issue reported on code.google.com by [email protected] on 2 Oct 2008 at 9:27

Need to extend .WithArguments to allow selection of arguments

Currently ON_CALL() and EXPECT_CALL() accepts a
.WithArguments(tuple_matcher) clause for specifying constraints on multiple
arguments, but it's not very easy to use.  The proposal:

- Allow optional template arguments to select the function arguments that
will participate in the matching, ala the WithArgs(callable) action.
- Allow the clause to be used more than once in an expectation.

For example,

  ON_CALL(foo, Bar(_, _, _))
      .WithArguments(A())
      .WithArguments<0, 2>(B())
      .WithArguments<2, 1>(C());

says that:

  - argument 0, 1, and 2 should match matcher A(),
  - argument 0 and 2 should match matcher B(), and
  - argument 2 and 1 should match matcher C().

One use case is that often a function passes a pointer to a buffer in one
argument and the size of the buffer in another argument, and we may want to
verify that the contents of the buffer are expected.

Original issue reported on code.google.com by [email protected] on 2 Oct 2008 at 9:27

Need to compare with other C++ mocking frameworks

Compare googlemock with the following frameworks such that the users know
which one to use:

mockpp: http://mockpp.sourceforge.net/
mockcpp: http://code.google.com/p/mockcpp/
mockitopp: http://code.google.com/p/mockitopp/
amop: http://code.google.com/p/amop/

Original issue reported on code.google.com by [email protected] on 6 Oct 2008 at 5:46

The Autotools build scripts require too much effort to use as a subdir package

Leveraging Google Mock as a subdirectory package via Autotools (likely a
common configuration) requires quite a bit of manual setup for the client
project, the vast majority of which will be identical with every other
client project. We should provide a M4-based macro that not only can
leverage an installed copy of Google Mock, but can automate some (if not
all) of the process of configuring and building Google Mock as a subdir
package with Autotools.


Original issue reported on code.google.com by [email protected] on 11 Dec 2008 at 6:45

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.