Documentation ¶
Index ¶
- type SIT
- func (s *SIT) AssertFloatEqualInJSONPath(path, json string, expected float64)
- func (s *SIT) AssertIntEqualInJSONPath(path, json string, expected int64)
- func (s *SIT) AssertStringEqualInJSONPath(path, json, expected string)
- func (s *SIT) Reset() error
- func (s *SIT) StubFor(method, path string, option *StubOption)
- type StubOption
- func (s *StubOption) WillReturnJSON(value interface{}, headers map[string]string, status int64) *StubOption
- func (s *StubOption) WithEquaJSONlBody(value string) *StubOption
- func (s *StubOption) WithEqualHeader(key, value string) *StubOption
- func (s *StubOption) WithEqualQueryParam(key, value string) *StubOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SIT ¶
func (*SIT) AssertFloatEqualInJSONPath ¶
func (*SIT) AssertIntEqualInJSONPath ¶
func (*SIT) AssertStringEqualInJSONPath ¶
func (*SIT) StubFor ¶
func (s *SIT) StubFor(method, path string, option *StubOption)
type StubOption ¶
type StubOption struct {
// contains filtered or unexported fields
}
func NewStubOption ¶
func NewStubOption() *StubOption
func (*StubOption) WillReturnJSON ¶
func (s *StubOption) WillReturnJSON(value interface{}, headers map[string]string, status int64) *StubOption
func (*StubOption) WithEquaJSONlBody ¶
func (s *StubOption) WithEquaJSONlBody(value string) *StubOption
func (*StubOption) WithEqualHeader ¶
func (s *StubOption) WithEqualHeader(key, value string) *StubOption
func (*StubOption) WithEqualQueryParam ¶
func (s *StubOption) WithEqualQueryParam(key, value string) *StubOption
Click to show internal directories.
Click to hide internal directories.