Documentation ¶
Index ¶
- Variables
- type Logger
- func (l *Logger) Debugf(format string, args ...interface{})
- func (l *Logger) Errorf(format string, args ...interface{})
- func (l *Logger) Fatalf(format string, args ...interface{})
- func (l *Logger) Infof(format string, args ...interface{})
- func (l *Logger) Printf(format string, args ...interface{})
- func (l *Logger) Warnf(format string, args ...interface{})
- func (l *Logger) Warningf(format string, args ...interface{})
- func (l *Logger) WithField(key string, value interface{}) venom.Logger
- type P
- type R
- type T
- type V
Constants ¶
This section is empty.
Variables ¶
View Source
var HTTP = struct { Get func(url, path string) P Post func(url, path string, body []byte) P PostJSON func(url, path string, body interface{}) P Put func(url, path string, body []byte) P PutJSON func(url, path string, body interface{}) P Delete func(url, path string) P }{ Get: func(url, path string) P { return P{ "type": "http", "method": "GET", "url": url, "path": path, } }, Post: func(url, path string, body []byte) P { return P{ "type": "http", "method": "POST", "url": url, "path": path, "body": string(body), } }, PostJSON: func(url, path string, body interface{}) P { b, err := json.Marshal(body) if err != nil { panic(err) } return P{ "type": "http", "method": "POST", "url": url, "path": path, "body": string(b), } }, Put: func(url, path string, body []byte) P { return P{ "type": "http", "method": "PUT", "url": url, "path": path, "body": string(body), } }, PutJSON: func(url, path string, body interface{}) P { b, err := json.Marshal(body) if err != nil { panic(err) } return P{ "type": "http", "method": "PUT", "url": url, "path": path, "body": string(b), } }, Delete: func(url, path string) P { return P{ "type": "http", "method": "DELETE", "url": url, "path": path, } }, }
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Logger is a superset of the testing Logger compliant with logrus Entry
type P ¶
type P map[string]interface{}
P is a map of test parameters
Click to show internal directories.
Click to hide internal directories.