hokanos / googlemock Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/googlemock
License: BSD 3-Clause "New" or "Revised" License
Automatically exported from code.google.com/p/googlemock
License: BSD 3-Clause "New" or "Revised" License
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
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
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
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
Bug Neal Norwitz to make his mock generator script available.
Original issue reported on code.google.com by [email protected]
on 2 Dec 2008 at 9:28
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.