assertanswer

package
v1.9.8 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package assertanswer provides testing functions to validate a plugin's answer

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasOptions

func HasOptions(t *testing.T, answer *slackscot.Answer, options ...ResolvedAnswerOption) bool

HasOptions asserts that the answer's options contains the expected configuration key/values

func HasText

func HasText(t *testing.T, answer *slackscot.Answer, text string) bool

HasText asserts that the answer's text is the expected text

func HasTextContaining

func HasTextContaining(t *testing.T, answer *slackscot.Answer, subString string) bool

HasTextContaining asserts that the answer's text contains the expected subString

Types

type ResolvedAnswerOption

type ResolvedAnswerOption struct {
	Key   string
	Value string
}

ResolvedAnswerOption holds a pair of Key/Value representing the physical AnswerOption

Jump to

Keyboard shortcuts

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