spec

package
v0.0.0-...-cb22eb2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 26, 2016 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockClock

type MockClock struct{}

func (MockClock) Now

func (clock MockClock) Now() time.Time

type MockRestClient

type MockRestClient struct {
	PostCalledCount int
	Request         model.WhiteboardRequest
	StandupItems    model.StandupItems
}

func (*MockRestClient) GetStandup

func (*MockRestClient) GetStandup(standupId string) (standup model.Standup, ok bool)

func (MockRestClient) GetStandupItems

func (client MockRestClient) GetStandupItems(standupId int) (items model.StandupItems, ok bool)

func (*MockRestClient) Post

func (client *MockRestClient) Post(request model.WhiteboardRequest) (itemId string, ok bool)

type MockSlackClient

type MockSlackClient struct {
	PostMessageCalled bool
	Message           string
	Entry             *model.Entry
	Status            string
}

func (*MockSlackClient) GetChannelDetails

func (slackClient *MockSlackClient) GetChannelDetails(channel string) (slackChannel *slack.Channel)

func (*MockSlackClient) GetUserDetails

func (slackClient *MockSlackClient) GetUserDetails(user string) (slackUser SlackUser)

func (*MockSlackClient) PostEntry

func (slackClient *MockSlackClient) PostEntry(entry *model.Entry, channel string, status string)

func (*MockSlackClient) PostMessage

func (slackClient *MockSlackClient) PostMessage(message string, channel string, status string)

func (*MockSlackClient) PostMessageWithMarkdown

func (slackClient *MockSlackClient) PostMessageWithMarkdown(message string, channel string, status string)

type MockStore

type MockStore struct {
	StoreMap map[string]string
}

func (*MockStore) Get

func (store *MockStore) Get(key string) (value string, ok bool)

func (*MockStore) GetStandup

func (store *MockStore) GetStandup(channel string) (standup model.Standup, ok bool)

func (*MockStore) Set

func (store *MockStore) Set(key string, value string)

func (*MockStore) SetStandup

func (store *MockStore) SetStandup(channel string, standup model.Standup)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL