// InternalNewExpectation is exported for purposes of testing only. You should
// not touch it.
InternalNewExpectation is exported for purposes of testing only. You should
not touch it.
// InternalNewExpectation is exported for purposes of testing only . You should // not touch it .
func InternalNewExpectation(
	reporter ErrorReporter,
	methodSignature reflect.Type,
	args []interface{},
	fileName string,
	lineNumber int) *InternalExpectation {
	result := &InternalExpectation{}
	result.methodSignature = methodSignature
	result.errorReporter = reporter
	result.FileName = fileName
	result.LineNumber = lineNumber
	result.ExpectedNumMatches = -1
	result.OneTimeActions = make([]Action, 0)
	result.ArgMatchers = make([]oglematchers.Matcher, len(args))
	for i, x := range args {
		if matcher, ok := x.(oglematchers.Matcher); ok {
			result.ArgMatchers[i] = matcher
		} else {
			result.ArgMatchers[i] = oglematchers.Equals(x)
		}
	}
	return result
}
func InternalNewExpectation ( reporter ErrorReporter , methodSignature reflect . Type , args [ ] interface { } , fileName string , lineNumber int ) * InternalExpectation { result := & InternalExpectation { } result . methodSignature = methodSignature result . errorReporter = reporter result . FileName = fileName result . LineNumber = lineNumber result . ExpectedNumMatches = - 1 result . OneTimeActions = make ( [ ] Action , 0 ) result . ArgMatchers = make ( [ ] oglematchers . Matcher , len ( args ) ) for i , x := range args { if matcher , ok := x . ( oglematchers . Matcher ) ; ok { result . ArgMatchers [ i ] = matcher } else { result . ArgMatchers [ i ] = oglematchers . Equals ( x ) } } return result }
InternalNewExpectation is exported for purposes of testing only.
InternalNewExpectation is exported for purposes of testing only .
// Store fields that can be stored directly. // Set up defaults. // Set up the ArgMatchers slice, using Equals(x) for each x that is not a // matcher itself.