Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareRequestNumber ¶
func CompareRequestNumber(pk CreditControlRequestPK, expected *wrappers.Int32Value, actual datatype.Unsigned32) error
func EqualWithinDelta ¶
Types ¶
type CreditControlRequestPK ¶
type CreditControlRequestPK struct {
// contains filtered or unexported fields
}
func NewCCRequestPK ¶
func NewCCRequestPK(imsi string, requestType protos.CCRequestType) CreditControlRequestPK
func (CreditControlRequestPK) String ¶
func (r CreditControlRequestPK) String() string
type Expectation ¶
type Expectation interface { DoesMatch(interface{}) error GetAnswer() interface{} }
type MockDriver ¶
func NewMockDriver ¶
func NewMockDriver(expectations []Expectation, behavior protos.UnexpectedRequestBehavior, defaultAnswer interface{}) *MockDriver
func (*MockDriver) AggregateResults ¶
func (e *MockDriver) AggregateResults() ([]*protos.ExpectationResult, []*protos.ErrorByIndex)
AggregateResults will aggregate resultByIndex and errorsByIndex.
func (*MockDriver) GetAnswerFromExpectations ¶
func (e *MockDriver) GetAnswerFromExpectations(message interface{}) interface{}
GetAnswerFromExpectations will use the message passed in to determine if the message matches the next upcoming expectation. If it does, it will return the answer specified in the expectation. Otherwise, if the unexpected request behavior is set to CONTINUE_WITH_DEFAULT_ANSWER, it will return the default answer. Otherwise, it will return nil.
Click to show internal directories.
Click to hide internal directories.