Analysis Software
Documentation for sPHENIX simulation software
|
#include "gmock/gmock.h"
#include <errno.h>
#include "gmock/internal/gmock-port.h"
#include "gtest/gtest.h"
#include <iostream>
#include <vector>
Go to the source code of this file.
Classes | |
class | Interface |
class | Mock |
class | InvokeHelper< Result, ArgumentTuple > |
class | FieldHelper |
Functions | |
TEST (LinkTest, TestReturnVoid) | |
TEST (LinkTest, TestReturn) | |
TEST (LinkTest, TestReturnNull) | |
TEST (LinkTest, TestReturnRef) | |
TEST (LinkTest, TestAssign) | |
TEST (LinkTest, TestSetArgPointee) | |
TEST (LinkTest, TestSetArrayArgument) | |
TEST (LinkTest, TestSetErrnoAndReturn) | |
TEST (LinkTest, TestInvoke) | |
TEST (LinkTest, TestInvokeWithoutArgs) | |
TEST (LinkTest, TestInvokeArgument) | |
TEST (LinkTest, TestWithArg) | |
TEST (LinkTest, TestWithArgs) | |
TEST (LinkTest, TestWithoutArgs) | |
TEST (LinkTest, TestDoAll) | |
TEST (LinkTest, TestDoDefault) | |
TEST (LinkTest, TestIgnoreResult) | |
TEST (LinkTest, TestActionMacro) | |
TEST (LinkTest, TestActionPMacro) | |
TEST (LinkTest, TestActionP2Macro) | |
TEST (LinkTest, TestMatcherAnything) | |
TEST (LinkTest, TestMatcherA) | |
TEST (LinkTest, TestMatchersEq) | |
TEST (LinkTest, TestMatchersRelations) | |
TEST (LinkTest, TestMatcherNotNull) | |
TEST (LinkTest, TestMatcherIsNull) | |
TEST (LinkTest, TestMatcherRef) | |
TEST (LinkTest, TestMatcherTypedEq) | |
TEST (LinkTest, TestMatchersFloatingPoint) | |
TEST (LinkTest, TestMatcherContainsRegex) | |
TEST (LinkTest, TestMatcherMatchesRegex) | |
TEST (LinkTest, TestMatchersSubstrings) | |
TEST (LinkTest, TestMatchersStringEquality) | |
TEST (LinkTest, TestMatcherElementsAre) | |
TEST (LinkTest, TestMatcherElementsAreArray) | |
TEST (LinkTest, TestMatcherContainerEq) | |
TEST (LinkTest, TestMatcherField) | |
TEST (LinkTest, TestMatcherProperty) | |
TEST (LinkTest, TestMatcherResultOf) | |
TEST (LinkTest, TestMatcherPointee) | |
TEST (LinkTest, TestMatcherTruly) | |
TEST (LinkTest, TestMatcherAllOf) | |
TEST (LinkTest, TestMatcherAnyOf) | |
TEST (LinkTest, TestMatcherNot) | |
TEST (LinkTest, TestMatcherCast) | |
TEST | ( | LinkTest | , |
TestReturnVoid | |||
) |
Definition at line 242 of file gmock_link_test.h.
View newest version in sPHENIX GitHub at line 242 of file gmock_link_test.h
References _, EXPECT_CALL, testing::Return(), and Interface::VoidFromString().
TEST | ( | LinkTest | , |
TestReturn | |||
) |
Definition at line 250 of file gmock_link_test.h.
View newest version in sPHENIX GitHub at line 250 of file gmock_link_test.h
References _, EXPECT_CALL, testing::Return(), and Interface::StringFromString().
TEST | ( | LinkTest | , |
TestReturnNull | |||
) |
Definition at line 259 of file gmock_link_test.h.
View newest version in sPHENIX GitHub at line 259 of file gmock_link_test.h
References _, EXPECT_CALL, testing::Return(), and Interface::VoidFromString().
TEST | ( | LinkTest | , |
TestReturnRef | |||
) |
Definition at line 267 of file gmock_link_test.h.
View newest version in sPHENIX GitHub at line 267 of file gmock_link_test.h
References _, EXPECT_CALL, Interface::IntRefFromString(), n, and testing::ReturnRef().
TEST | ( | LinkTest | , |
TestAssign | |||
) |
Definition at line 276 of file gmock_link_test.h.
View newest version in sPHENIX GitHub at line 276 of file gmock_link_test.h
References _, testing::Assign(), EXPECT_CALL, and Interface::VoidFromString().
TEST | ( | LinkTest | , |
TestSetArgPointee | |||
) |
Definition at line 285 of file gmock_link_test.h.
View newest version in sPHENIX GitHub at line 285 of file gmock_link_test.h
References _, EXPECT_CALL, and Interface::VoidFromString().
TEST | ( | LinkTest | , |
TestSetArrayArgument | |||
) |
Definition at line 294 of file gmock_link_test.h.
View newest version in sPHENIX GitHub at line 294 of file gmock_link_test.h
References _, EXPECT_CALL, and Interface::VoidFromString().
TEST | ( | LinkTest | , |
TestSetErrnoAndReturn | |||
) |
Definition at line 307 of file gmock_link_test.h.
View newest version in sPHENIX GitHub at line 307 of file gmock_link_test.h
References _, EXPECT_CALL, Interface::IntFromString(), and testing::SetErrnoAndReturn().
TEST | ( | LinkTest | , |
TestInvoke | |||
) |
Definition at line 319 of file gmock_link_test.h.
View newest version in sPHENIX GitHub at line 319 of file gmock_link_test.h
References _, EXPECT_CALL, testing::Invoke(), InvokeHelper< Result, ArgumentTuple >::StaticVoidFromString(), Interface::VoidFromString(), and InvokeHelper< Result, ArgumentTuple >::VoidFromString().
TEST | ( | LinkTest | , |
TestInvokeWithoutArgs | |||
) |
Definition at line 331 of file gmock_link_test.h.
View newest version in sPHENIX GitHub at line 331 of file gmock_link_test.h
References _, EXPECT_CALL, testing::InvokeWithoutArgs(), InvokeHelper< Result, ArgumentTuple >::StaticVoidFromVoid(), Interface::VoidFromString(), and InvokeHelper< Result, ArgumentTuple >::VoidFromVoid().
TEST | ( | LinkTest | , |
TestInvokeArgument | |||
) |
Definition at line 344 of file gmock_link_test.h.
View newest version in sPHENIX GitHub at line 344 of file gmock_link_test.h
References _, EXPECT_CALL, InvokeHelper< Result, ArgumentTuple >::StaticVoidFromString(), and Interface::VoidFromFunc().
TEST | ( | LinkTest | , |
TestWithArg | |||
) |
Definition at line 353 of file gmock_link_test.h.
View newest version in sPHENIX GitHub at line 353 of file gmock_link_test.h
References _, EXPECT_CALL, testing::Invoke(), InvokeHelper< Result, ArgumentTuple >::StaticVoidFromString(), and Interface::VoidFromString().
TEST | ( | LinkTest | , |
TestWithArgs | |||
) |
Definition at line 362 of file gmock_link_test.h.
View newest version in sPHENIX GitHub at line 362 of file gmock_link_test.h
References _, EXPECT_CALL, testing::Invoke(), InvokeHelper< Result, ArgumentTuple >::StaticVoidFromString(), and Interface::VoidFromString().
TEST | ( | LinkTest | , |
TestWithoutArgs | |||
) |
Definition at line 371 of file gmock_link_test.h.
View newest version in sPHENIX GitHub at line 371 of file gmock_link_test.h
References _, EXPECT_CALL, testing::Return(), Interface::VoidFromString(), and testing::WithoutArgs().
TEST | ( | LinkTest | , |
TestDoAll | |||
) |
Definition at line 379 of file gmock_link_test.h.
View newest version in sPHENIX GitHub at line 379 of file gmock_link_test.h
References _, testing::DoAll(), EXPECT_CALL, testing::Return(), and Interface::VoidFromString().
TEST | ( | LinkTest | , |
TestDoDefault | |||
) |
Definition at line 389 of file gmock_link_test.h.
View newest version in sPHENIX GitHub at line 389 of file gmock_link_test.h
References _, testing::DoDefault(), EXPECT_CALL, ON_CALL, testing::Return(), and Interface::VoidFromString().
TEST | ( | LinkTest | , |
TestIgnoreResult | |||
) |
Definition at line 399 of file gmock_link_test.h.
View newest version in sPHENIX GitHub at line 399 of file gmock_link_test.h
References _, EXPECT_CALL, testing::IgnoreResult(), testing::Return(), and Interface::VoidFromString().
TEST | ( | LinkTest | , |
TestActionMacro | |||
) |
Definition at line 431 of file gmock_link_test.h.
View newest version in sPHENIX GitHub at line 431 of file gmock_link_test.h
References _, EXPECT_CALL, and Interface::IntFromString().
TEST | ( | LinkTest | , |
TestActionPMacro | |||
) |
Definition at line 443 of file gmock_link_test.h.
View newest version in sPHENIX GitHub at line 443 of file gmock_link_test.h
References _, EXPECT_CALL, and Interface::IntFromString().
TEST | ( | LinkTest | , |
TestActionP2Macro | |||
) |
Definition at line 461 of file gmock_link_test.h.
View newest version in sPHENIX GitHub at line 461 of file gmock_link_test.h
References _, EXPECT_CALL, and Interface::IntFromString().
TEST | ( | LinkTest | , |
TestMatcherAnything | |||
) |
Definition at line 471 of file gmock_link_test.h.
View newest version in sPHENIX GitHub at line 471 of file gmock_link_test.h
References _, ON_CALL, and testing::Return().
TEST | ( | LinkTest | , |
TestMatcherA | |||
) |
Definition at line 478 of file gmock_link_test.h.
View newest version in sPHENIX GitHub at line 478 of file gmock_link_test.h
References ON_CALL, and testing::Return().
TEST | ( | LinkTest | , |
TestMatchersEq | |||
) |
Definition at line 485 of file gmock_link_test.h.
View newest version in sPHENIX GitHub at line 485 of file gmock_link_test.h
References testing::Eq(), ON_CALL, merge_hashes::p, and testing::Return().
TEST | ( | LinkTest | , |
TestMatchersRelations | |||
) |
Definition at line 495 of file gmock_link_test.h.
View newest version in sPHENIX GitHub at line 495 of file gmock_link_test.h
References f, testing::Ge(), testing::Gt(), testing::Le(), testing::Lt(), testing::Ne(), ON_CALL, and testing::Return().
TEST | ( | LinkTest | , |
TestMatcherNotNull | |||
) |
Definition at line 506 of file gmock_link_test.h.
View newest version in sPHENIX GitHub at line 506 of file gmock_link_test.h
References testing::NotNull(), ON_CALL, and testing::Return().
TEST | ( | LinkTest | , |
TestMatcherIsNull | |||
) |
Definition at line 513 of file gmock_link_test.h.
View newest version in sPHENIX GitHub at line 513 of file gmock_link_test.h
References testing::IsNull(), ON_CALL, and testing::Return().
TEST | ( | LinkTest | , |
TestMatcherRef | |||
) |
Definition at line 520 of file gmock_link_test.h.
View newest version in sPHENIX GitHub at line 520 of file gmock_link_test.h
References KFPMath::a, ON_CALL, testing::Ref(), and testing::Return().
TEST | ( | LinkTest | , |
TestMatcherTypedEq | |||
) |
Definition at line 528 of file gmock_link_test.h.
View newest version in sPHENIX GitHub at line 528 of file gmock_link_test.h
References KFPMath::a, ON_CALL, and testing::Return().
TEST | ( | LinkTest | , |
TestMatchersFloatingPoint | |||
) |
Definition at line 537 of file gmock_link_test.h.
View newest version in sPHENIX GitHub at line 537 of file gmock_link_test.h
References KFPMath::a, testing::DoubleEq(), testing::FloatEq(), testing::NanSensitiveDoubleEq(), testing::NanSensitiveFloatEq(), ON_CALL, and testing::Return().
TEST | ( | LinkTest | , |
TestMatcherContainsRegex | |||
) |
Definition at line 549 of file gmock_link_test.h.
View newest version in sPHENIX GitHub at line 549 of file gmock_link_test.h
References testing::ContainsRegex(), ON_CALL, and testing::Return().
TEST | ( | LinkTest | , |
TestMatcherMatchesRegex | |||
) |
Definition at line 556 of file gmock_link_test.h.
View newest version in sPHENIX GitHub at line 556 of file gmock_link_test.h
References testing::MatchesRegex(), ON_CALL, and testing::Return().
TEST | ( | LinkTest | , |
TestMatchersSubstrings | |||
) |
Definition at line 563 of file gmock_link_test.h.
View newest version in sPHENIX GitHub at line 563 of file gmock_link_test.h
References testing::EndsWith(), testing::HasSubstr(), ON_CALL, testing::Return(), and testing::StartsWith().
TEST | ( | LinkTest | , |
TestMatchersStringEquality | |||
) |
Definition at line 572 of file gmock_link_test.h.
View newest version in sPHENIX GitHub at line 572 of file gmock_link_test.h
References ON_CALL, testing::Return(), testing::StrCaseEq(), testing::StrCaseNe(), testing::StrEq(), and testing::StrNe().
TEST | ( | LinkTest | , |
TestMatcherElementsAre | |||
) |
Definition at line 581 of file gmock_link_test.h.
View newest version in sPHENIX GitHub at line 581 of file gmock_link_test.h
References _, testing::ElementsAre(), ON_CALL, and testing::Return().
TEST | ( | LinkTest | , |
TestMatcherElementsAreArray | |||
) |
Definition at line 588 of file gmock_link_test.h.
View newest version in sPHENIX GitHub at line 588 of file gmock_link_test.h
References arr, testing::ElementsAreArray(), ON_CALL, and testing::Return().
TEST | ( | LinkTest | , |
TestMatcherContainerEq | |||
) |
Definition at line 596 of file gmock_link_test.h.
View newest version in sPHENIX GitHub at line 596 of file gmock_link_test.h
References testing::ContainerEq(), ON_CALL, testing::Return(), and testSigmaEff::v.
TEST | ( | LinkTest | , |
TestMatcherField | |||
) |
Definition at line 604 of file gmock_link_test.h.
View newest version in sPHENIX GitHub at line 604 of file gmock_link_test.h
References testing::Eq(), EXPECT_TRUE, testing::Field(), FieldHelper::field_, Acts::UnitConstants::m, Acts::UnitConstants::m2, and testing::internal::MatcherBase< T >::Matches().
TEST | ( | LinkTest | , |
TestMatcherProperty | |||
) |
Definition at line 615 of file gmock_link_test.h.
View newest version in sPHENIX GitHub at line 615 of file gmock_link_test.h
References testing::Eq(), EXPECT_TRUE, FieldHelper::field(), Acts::UnitConstants::m, Acts::UnitConstants::m2, testing::internal::MatcherBase< T >::Matches(), and testing::Property().
TEST | ( | LinkTest | , |
TestMatcherResultOf | |||
) |
Definition at line 626 of file gmock_link_test.h.
View newest version in sPHENIX GitHub at line 626 of file gmock_link_test.h
References testing::Eq(), EXPECT_TRUE, Acts::UnitConstants::m, testing::internal::MatcherBase< T >::Matches(), testing::ResultOf(), and InvokeHelper< Result, ArgumentTuple >::StaticIntFromString().
TEST | ( | LinkTest | , |
TestMatcherPointee | |||
) |
Definition at line 632 of file gmock_link_test.h.
View newest version in sPHENIX GitHub at line 632 of file gmock_link_test.h
References testing::Eq(), EXPECT_TRUE, Acts::UnitConstants::m, testing::internal::MatcherBase< T >::Matches(), n, and testing::Pointee().
TEST | ( | LinkTest | , |
TestMatcherTruly | |||
) |
Definition at line 640 of file gmock_link_test.h.
View newest version in sPHENIX GitHub at line 640 of file gmock_link_test.h
References EXPECT_TRUE, Acts::UnitConstants::m, testing::internal::MatcherBase< T >::Matches(), InvokeHelper< Result, ArgumentTuple >::StaticBoolFromString(), and testing::Truly().
TEST | ( | LinkTest | , |
TestMatcherAllOf | |||
) |
Definition at line 646 of file gmock_link_test.h.
View newest version in sPHENIX GitHub at line 646 of file gmock_link_test.h
References _, testing::AllOf(), testing::Eq(), EXPECT_TRUE, Acts::UnitConstants::m, and testing::internal::MatcherBase< T >::Matches().
TEST | ( | LinkTest | , |
TestMatcherAnyOf | |||
) |
Definition at line 652 of file gmock_link_test.h.
View newest version in sPHENIX GitHub at line 652 of file gmock_link_test.h
References _, testing::AnyOf(), testing::Eq(), EXPECT_TRUE, Acts::UnitConstants::m, and testing::internal::MatcherBase< T >::Matches().
TEST | ( | LinkTest | , |
TestMatcherNot | |||
) |
Definition at line 658 of file gmock_link_test.h.
View newest version in sPHENIX GitHub at line 658 of file gmock_link_test.h
References _, EXPECT_FALSE, Acts::UnitConstants::m, testing::internal::MatcherBase< T >::Matches(), and testing::Not().
TEST | ( | LinkTest | , |
TestMatcherCast | |||
) |
Definition at line 664 of file gmock_link_test.h.
View newest version in sPHENIX GitHub at line 664 of file gmock_link_test.h
References _, EXPECT_TRUE, Acts::UnitConstants::m, and testing::internal::MatcherBase< T >::Matches().