func (m *Modifier) RequestError(err error) {
	m.reqerr = err
}
RequestError overrides the error returned by ModifyRequest.
package martiantest
import (
	"net/http"
	"sync/atomic"
)
type Modifier struct {
	reqcount int32  
	rescount int32  
	reqerr   error
	reserr   error
	reqfunc  func(*http.Request)
	resfunc  func(*http.Response)
}
func NewModifier() *Modifier {
	return &Modifier{}
}
func (m *Modifier) RequestCount() int32 {
	return atomic.LoadInt32(&m.reqcount)
}
func (m *Modifier) ResponseCount() int32 {
	return atomic.LoadInt32(&m.rescount)
}
func (m *Modifier) RequestModified() bool {
	return m.RequestCount() != 0
}
func (m *Modifier) ResponseModified() bool {
	return m.ResponseCount() != 0
}