Example #1
0
func (v *Assert) Pointer(value interface{}) *PointerSubject {
	return &PointerSubject{
		Subject: Subject{
			a:    v,
			disp: serial.ToString(value),
		},
		value: value,
	}
}
Example #2
0
func (v ErrorBuilder) Message(msg ...interface{}) error {
	if v.error == nil {
		return nil
	}

	return &Error{
		message: serial.ToString(msg) + " > " + v.error.Error(),
		inner:   v.error,
	}
}
Example #3
0
func (subject *PointerSubject) Equals(expectation interface{}) {
	if subject.value != expectation {
		subject.Fail("is equal to", serial.ToString(expectation))
	}
}
Example #4
0
func (v *AccessLog) String() string {
	return strings.Join([]string{serial.ToString(v.From), v.Status, serial.ToString(v.To), serial.ToString(v.Reason)}, " ")
}