tester

package
v2.2.7 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2022 License: MIT Imports: 19 Imported by: 0

Documentation

Overview

Package tester provides functionality to test the bot against a fake slack server

Index

Constants

View Source
const (
	TestChannel = "dev"
	User        = "cli"
)

TestChannel is just a test channel name which is used for testing

Variables

View Source
var FakeServerURL string

FakeServerURL is the host for the fake Slack server endpoint. It can be also used to send fake responses.

Functions

func HandleMessage added in v2.2.4

func HandleMessage(text string)

HandleMessage is used in the CLI context to process the given message test for the "cli" user

func StartBot

func StartBot(cfg config.Config) *bot.Bot

StartBot will start this bot against the fake slack instance

func StartFakeSlack

func StartFakeSlack(cfg *config.Config, output io.Writer) *slacktest.Server

StartFakeSlack will start a http server which implements the basic Slack API

Types

This section is empty.

Jump to

Keyboard shortcuts

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