"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "googletest/test/gtest_pred_impl_unittest.cc" between
googletest-release-1.10.0.tar.gz and googletest-release-1.11.0.tar.gz

About: GoogleTest is Google's (unit) testing and mocking framework for C++ tests.

gtest_pred_impl_unittest.cc  (googletest-release-1.10.0):gtest_pred_impl_unittest.cc  (googletest-release-1.11.0)
skipping to change at line 30 skipping to change at line 30
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// This file is AUTOMATICALLY GENERATED on 01/02/2019 by command // This file is AUTOMATICALLY GENERATED on 11/05/2019 by command
// 'gen_gtest_pred_impl.py 5'. DO NOT EDIT BY HAND! // 'gen_gtest_pred_impl.py 5'. DO NOT EDIT BY HAND!
// Regression test for gtest_pred_impl.h // Regression test for gtest_pred_impl.h
// //
// This file is generated by a script and quite long. If you intend to // This file is generated by a script and quite long. If you intend to
// learn how Google Test works by reading its unit tests, read // learn how Google Test works by reading its unit tests, read
// gtest_unittest.cc instead. // gtest_unittest.cc instead.
// //
// This is intended as a regression test for the Google Test predicate // This is intended as a regression test for the Google Test predicate
// assertions. We compile it as part of the gtest_unittest target // assertions. We compile it as part of the gtest_unittest target
skipping to change at line 81 skipping to change at line 81
} }
// Sample functions/functors for testing unary predicate assertions. // Sample functions/functors for testing unary predicate assertions.
// A unary predicate function. // A unary predicate function.
template <typename T1> template <typename T1>
bool PredFunction1(T1 v1) { bool PredFunction1(T1 v1) {
return v1 > 0; return v1 > 0;
} }
// The following two functions are needed to circumvent a bug in // The following two functions are needed because a compiler doesn't have
// gcc 2.95.3, which sometimes has problem with the above template // a context yet to know which template function must be instantiated.
// function.
bool PredFunction1Int(int v1) { bool PredFunction1Int(int v1) {
return v1 > 0; return v1 > 0;
} }
bool PredFunction1Bool(Bool v1) { bool PredFunction1Bool(Bool v1) {
return v1 > 0; return v1 > 0;
} }
// A unary predicate functor. // A unary predicate functor.
struct PredFunctor1 { struct PredFunctor1 {
template <typename T1> template <typename T1>
skipping to change at line 468 skipping to change at line 467
}, ""); }, "");
} }
// Sample functions/functors for testing binary predicate assertions. // Sample functions/functors for testing binary predicate assertions.
// A binary predicate function. // A binary predicate function.
template <typename T1, typename T2> template <typename T1, typename T2>
bool PredFunction2(T1 v1, T2 v2) { bool PredFunction2(T1 v1, T2 v2) {
return v1 + v2 > 0; return v1 + v2 > 0;
} }
// The following two functions are needed to circumvent a bug in // The following two functions are needed because a compiler doesn't have
// gcc 2.95.3, which sometimes has problem with the above template // a context yet to know which template function must be instantiated.
// function.
bool PredFunction2Int(int v1, int v2) { bool PredFunction2Int(int v1, int v2) {
return v1 + v2 > 0; return v1 + v2 > 0;
} }
bool PredFunction2Bool(Bool v1, Bool v2) { bool PredFunction2Bool(Bool v1, Bool v2) {
return v1 + v2 > 0; return v1 + v2 > 0;
} }
// A binary predicate functor. // A binary predicate functor.
struct PredFunctor2 { struct PredFunctor2 {
template <typename T1, typename T2> template <typename T1, typename T2>
skipping to change at line 897 skipping to change at line 895
}, ""); }, "");
} }
// Sample functions/functors for testing ternary predicate assertions. // Sample functions/functors for testing ternary predicate assertions.
// A ternary predicate function. // A ternary predicate function.
template <typename T1, typename T2, typename T3> template <typename T1, typename T2, typename T3>
bool PredFunction3(T1 v1, T2 v2, T3 v3) { bool PredFunction3(T1 v1, T2 v2, T3 v3) {
return v1 + v2 + v3 > 0; return v1 + v2 + v3 > 0;
} }
// The following two functions are needed to circumvent a bug in // The following two functions are needed because a compiler doesn't have
// gcc 2.95.3, which sometimes has problem with the above template // a context yet to know which template function must be instantiated.
// function.
bool PredFunction3Int(int v1, int v2, int v3) { bool PredFunction3Int(int v1, int v2, int v3) {
return v1 + v2 + v3 > 0; return v1 + v2 + v3 > 0;
} }
bool PredFunction3Bool(Bool v1, Bool v2, Bool v3) { bool PredFunction3Bool(Bool v1, Bool v2, Bool v3) {
return v1 + v2 + v3 > 0; return v1 + v2 + v3 > 0;
} }
// A ternary predicate functor. // A ternary predicate functor.
struct PredFunctor3 { struct PredFunctor3 {
template <typename T1, typename T2, typename T3> template <typename T1, typename T2, typename T3>
skipping to change at line 1368 skipping to change at line 1365
}, ""); }, "");
} }
// Sample functions/functors for testing 4-ary predicate assertions. // Sample functions/functors for testing 4-ary predicate assertions.
// A 4-ary predicate function. // A 4-ary predicate function.
template <typename T1, typename T2, typename T3, typename T4> template <typename T1, typename T2, typename T3, typename T4>
bool PredFunction4(T1 v1, T2 v2, T3 v3, T4 v4) { bool PredFunction4(T1 v1, T2 v2, T3 v3, T4 v4) {
return v1 + v2 + v3 + v4 > 0; return v1 + v2 + v3 + v4 > 0;
} }
// The following two functions are needed to circumvent a bug in // The following two functions are needed because a compiler doesn't have
// gcc 2.95.3, which sometimes has problem with the above template // a context yet to know which template function must be instantiated.
// function.
bool PredFunction4Int(int v1, int v2, int v3, int v4) { bool PredFunction4Int(int v1, int v2, int v3, int v4) {
return v1 + v2 + v3 + v4 > 0; return v1 + v2 + v3 + v4 > 0;
} }
bool PredFunction4Bool(Bool v1, Bool v2, Bool v3, Bool v4) { bool PredFunction4Bool(Bool v1, Bool v2, Bool v3, Bool v4) {
return v1 + v2 + v3 + v4 > 0; return v1 + v2 + v3 + v4 > 0;
} }
// A 4-ary predicate functor. // A 4-ary predicate functor.
struct PredFunctor4 { struct PredFunctor4 {
template <typename T1, typename T2, typename T3, typename T4> template <typename T1, typename T2, typename T3, typename T4>
skipping to change at line 1881 skipping to change at line 1877
}, ""); }, "");
} }
// Sample functions/functors for testing 5-ary predicate assertions. // Sample functions/functors for testing 5-ary predicate assertions.
// A 5-ary predicate function. // A 5-ary predicate function.
template <typename T1, typename T2, typename T3, typename T4, typename T5> template <typename T1, typename T2, typename T3, typename T4, typename T5>
bool PredFunction5(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5) { bool PredFunction5(T1 v1, T2 v2, T3 v3, T4 v4, T5 v5) {
return v1 + v2 + v3 + v4 + v5 > 0; return v1 + v2 + v3 + v4 + v5 > 0;
} }
// The following two functions are needed to circumvent a bug in // The following two functions are needed because a compiler doesn't have
// gcc 2.95.3, which sometimes has problem with the above template // a context yet to know which template function must be instantiated.
// function.
bool PredFunction5Int(int v1, int v2, int v3, int v4, int v5) { bool PredFunction5Int(int v1, int v2, int v3, int v4, int v5) {
return v1 + v2 + v3 + v4 + v5 > 0; return v1 + v2 + v3 + v4 + v5 > 0;
} }
bool PredFunction5Bool(Bool v1, Bool v2, Bool v3, Bool v4, Bool v5) { bool PredFunction5Bool(Bool v1, Bool v2, Bool v3, Bool v4, Bool v5) {
return v1 + v2 + v3 + v4 + v5 > 0; return v1 + v2 + v3 + v4 + v5 > 0;
} }
// A 5-ary predicate functor. // A 5-ary predicate functor.
struct PredFunctor5 { struct PredFunctor5 {
template <typename T1, typename T2, typename T3, typename T4, typename T5> template <typename T1, typename T2, typename T3, typename T4, typename T5>
 End of changes. 6 change blocks. 
16 lines changed or deleted 11 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)