Documentation ¶
Overview ¶
Package chunktest provides a test server for testing the chunk package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DirServer ¶
type DirServer struct {
// contains filtered or unexported fields
}
DirServer is a test server that serves files from a chunk.Directory.
func NewDirServer ¶
type GetConversationRepliesResponse ¶
type GetConversationRepliesResponse struct { slack.SlackResponse HasMore bool `json:"has_more"` ResponseMetaData responseMetaData `json:"response_metadata"` Messages []slack.Message `json:"messages"` }
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is a test server for testing the chunk package, that serves API from a single chunk file.
type TestAuth ¶
type TestAuth struct { FakeToken string FakeCookies []*http.Cookie WantValidateError error WantTestError error WantHTTPClient *http.Client WantHTTPClientErr error WantAuthTestResponse *slack.AuthTestResponse }
TestAuth to use with the chunktest server.
func (*TestAuth) HTTPClient ¶
HTTPClient returns an authenticated HTTP client
func (*TestAuth) SlackToken ¶
SlackToken should return the Slack Token value.
Click to show internal directories.
Click to hide internal directories.