func (tm *Matcher) MatchRequest(*http.Request) bool {
	return tm.reqval
}
MatchRequest returns the stubbed value in tm.reqval.
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
}
func (m *Modifier) RequestError(err error) {
	m.reqerr = err
}
func (m *Modifier) ResponseError(err error) {
	m.reserr = err
}
func (m *Modifier) RequestFunc(reqfunc func(req *http.Request)) {
	m.reqfunc = reqfunc
}
func (m *Modifier) ResponseFunc(resfunc func(res *http.Response)) {
	m.resfunc = resfunc
}
func (m *Modifier) ModifyRequest(req *http.Request) error {
	atomic.AddInt32(&m.reqcount, 1)
	if m.reqfunc != nil {
		m.reqfunc(req)
	}
	return m.reqerr
}
func (m *Modifier) ModifyResponse(res *http.Response) error {
	atomic.AddInt32(&m.rescount, 1)
	if m.resfunc != nil {
		m.resfunc(res)
	}
	return m.reserr
}
func (m *Modifier) Reset() {
	atomic.StoreInt32(&m.reqcount, 0)
	atomic.StoreInt32(&m.rescount, 0)
	m.reqfunc = nil
	m.resfunc = nil
	m.reqerr = nil
	m.reserr = nil
}
type Matcher struct {
	resval bool
	reqval bool
}
func NewMatcher() *Matcher {
	return &Matcher{resval: true, reqval: true}
}
func (tm *Matcher) ResponseEvaluatesTo(value bool) {
	tm.resval = value
}
func (tm *Matcher) RequestEvaluatesTo(value bool) {
	tm.reqval = value
}