Documentation
¶
Overview ¶
Package options declares options to be used in customizeable matchers Note: Options of ALL `be_*` matchers are stored here, in a separate package `options`.
It's done with consideration that `options` package will be imported via `dot import` so inside your tests options are clear & short, without package name e.g.: `Expect(myString).To(be_string.Only( Alpha | Numeric | Whitespace )`
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StringOption ¶
type StringOption Option
const ( // Alpha option represents the presence of alphabetical characters. Alpha StringOption = 1 << (iota - 1) // Numeric option represents the presence of numeric characters. Numeric // Whitespace option represents the presence of whitespace characters. Whitespace // Dots option represents the presence of dot characters. Dots // Punctuation option represents the presence of punctuation characters. Punctuation // SpecialCharacters option represents the presence of special characters. SpecialCharacters )
func ExtractStringOptions ¶
func ExtractStringOptions(combined StringOption) []StringOption
ExtractStringOptions extracts individual options from a combined string option
func (StringOption) String ¶
func (f StringOption) String() string
Click to show internal directories.
Click to hide internal directories.