MCPcopy Index your code

hub / github.com/cucumber/godog / functions

Functions646 in github.com/cucumber/godog

↓ 150 callersMethodStep
Step allows to register a *StepDefinition in the Godog feature suite, the definition will be applied to all steps matching the given Regexp expr. It
test_context.go:255
↓ 125 callersMethodErrorf
Errorf fails the current test and logs the formatted message. Equivalent to calling Logf then Fail.
testingt.go:32
↓ 68 callersMethodRun
Run a step with the matched arguments using reflect Returns one of ... (context, error) (context, godog.Steps)
internal/models/stepdef.go:44
↓ 58 callersMethodFatalf
Fatal logs the formatted message, marks the test as failed and halts execution of the step.
testingt.go:40
↓ 37 callersMethodString
String ...
internal/models/results.go:94
↓ 30 callersMethodError
Error fails the current test and logs the provided arguments. Equivalent to calling Log then Fail.
testingt.go:29
↓ 30 callersMethodRun
Run will execute the test suite. If options are not set, it will reads all configuration options from flags. The exit codes may vary from: 0 - suc
run.go:339
↓ 26 callersMethodName
Name returns the name of the current pickle under test
testingt.go:21
↓ 23 callersFunctionNewStorage
NewStorage will create an in-mem storage that is used across concurrent runners and formatters
internal/storage/storage.go:49
↓ 23 callersFunctionYellow
Yellow will accept an interface and return a colorized yellow string.
colors/colors.go:61
↓ 17 callersFunctionT
T returns a TestingT compatible interface from the current test context. It will return nil if called outside the context of a test. This can be used
testingt.go:13
↓ 16 callersFunctionAttach
(ctx context.Context, attachments ...Attachment)
suite.go:84
↓ 16 callersMethodBefore
Before registers a function or method to be run before every step.
test_context.go:146
↓ 16 callersMethodLen
()
internal/formatters/fmt.go:50
↓ 15 callersMethodString
()
flags.go:243
↓ 14 callersMethodMustGetPickleStepResultsByStatus
MustGetPickleStepResultsByStatus will retrieve pickle strep results by status and panic on error.
internal/storage/storage.go:252
↓ 14 callersMethodshouldBeString
(idx int)
internal/models/stepdef.go:285
↓ 13 callersMethodAfter
After registers a function or method to be run after every step. It may be convenient to return a different kind of error in order to print more stat
test_context.go:162
↓ 13 callersMethodMustGetFeature
MustGetFeature will retrieve a feature by URI and panic on error.
internal/storage/storage.go:267
↓ 13 callersMethodMustInsertPickle
MustInsertPickle will insert a pickle and it's steps, will panic on error.
internal/storage/storage.go:140
↓ 12 callersMethodFindScenario
FindScenario returns the scenario in the feature or in a rule in the feature
internal/models/feature.go:33
↓ 12 callersMethodMustGetPickleStep
MustGetPickleStep will retrieve a pickle step and panic on error.
internal/storage/storage.go:173
↓ 12 callersMethodMustInsertFeature
MustInsertFeature will insert a feature and panic on error.
internal/storage/storage.go:262
↓ 12 callersMethodMustInsertPickleStepResult
MustInsertPickleStepResult will insert a pickle step result and panic on error.
internal/storage/storage.go:200
↓ 12 callersMethodStepContext
StepContext exposes StepContext of a scenario.
test_context.go:140
↓ 11 callersMethodconcurrent
(rate int)
run.go:57
↓ 10 callersMethodFailed
(*messages.Pickle, *messages.PickleStep, *StepDefinition, error)
formatters/fmt.go:68
↓ 10 callersMethodFindStep
FindStep ...
internal/models/feature.go:110
↓ 10 callersMethodSkipped
Skipped returns true if the test has been marked as skipped.
testingt.go:50
↓ 10 callersFunctionUncolored
Uncolored will accept and io.Writer and return a new io.Writer that won't include colors.
colors/no_colors.go:16
↓ 10 callersMethodevent
(ev interface{})
internal/formatters/fmt_events.go:30
↓ 10 callersMethodrun
(t *testing.T)
internal/builder/builder_test.go:342
↓ 10 callersFunctiontestRun
( t *testing.T, scenarioInitializer func(*ScenarioContext), format string, concurrency int, randomSeed in
run_test.go:626
↓ 9 callersFunctionAttachments
(ctx context.Context)
suite.go:90
↓ 9 callersFunctionNewStepResult
NewStepResult ...
internal/models/results.go:43
↓ 9 callersMethodPassed
(*messages.Pickle, *messages.PickleStep, *StepDefinition)
formatters/fmt.go:69
↓ 9 callersMethodPending
(*messages.Pickle, *messages.PickleStep, *StepDefinition)
formatters/fmt.go:72
↓ 9 callersMethodUndefined
(*messages.Pickle, *messages.PickleStep, *StepDefinition)
formatters/fmt.go:71
↓ 8 callersMethodAmbiguous
(*messages.Pickle, *messages.PickleStep, *StepDefinition, error)
formatters/fmt.go:73
↓ 8 callersMethodFeature
(*messages.GherkinDocument, string, []byte)
formatters/fmt.go:65
↓ 8 callersMethodGetInternalStepDefinition
GetInternalStepDefinition ...
internal/models/stepdef.go:303
↓ 8 callersMethodOpen
Open a file in the provided `fs.FS`. If none provided, open via `os.Open`
internal/storage/fs.go:15
↓ 8 callersMethodPickle
(*messages.Pickle)
formatters/fmt.go:66
↓ 8 callersFunctionProgressFormatterFunc
ProgressFormatterFunc implements the FormatterFunc for the progress formatter.
internal/formatters/fmt_progress.go:19
↓ 8 callersMethodSummary
()
formatters/fmt.go:74
↓ 8 callersMethodTestRunStarted
()
formatters/fmt.go:64
↓ 7 callersFunctionBold
Bold will accept a ColorFunc and return a new ColorFunc that will make the string bold.
colors/colors.go:34
↓ 7 callersMethodFail
Fail marks the current test as failed, but does not halt execution of the step.
testingt.go:34
↓ 7 callersMethodFindExample
FindExample ...
internal/models/feature.go:80
↓ 7 callersFunctionFindFmt
FindFmt searches available formatters registered and returns FormaterFunc matched by given format name or nil otherwise
fmt.go:19
↓ 6 callersFunctionBindRunCmdFlags
BindRunCmdFlags is an internal func to bind run subcommand flags.
internal/flags/flags.go:8
↓ 6 callersMethodColor
Color ...
internal/models/results.go:80
↓ 6 callersFunctionColored
Colored creates and initializes a new ansiColorWriter using io.Writer w as its initial contents. In the console of Windows, which change the foregroun
colors/writer.go:27
↓ 6 callersMethodDefined
(*messages.Pickle, *messages.PickleStep, *StepDefinition)
formatters/fmt.go:67
↓ 6 callersMethodFatal
Fatal logs the provided arguments, marks the test as failed and halts execution of the step.
testingt.go:38
↓ 6 callersMethodFindBackground
FindBackground ...
internal/models/feature.go:51
↓ 6 callersMethodMustGetPickleStepResult
MustGetPickleStepResult will retrieve a pickle strep result by id and panic on error.
internal/storage/storage.go:221
↓ 6 callersFunctionNewBase
NewBase creates a new base formatter.
internal/formatters/fmt_base.go:29
↓ 6 callersFunctionParseFeatures
ParseFeatures ...
internal/parser/parser.go:149
↓ 6 callersFunctioncolorize
(s interface{}, c color)
colors/colors.go:25
↓ 6 callersFunctionkeywordAndName
(keyword, name string)
internal/formatters/fmt_pretty.go:146
↓ 6 callersMethodmustFirst
(table, index string, args ...interface{})
internal/storage/storage.go:313
↓ 6 callersMethodmustGet
(table, index string, args ...interface{})
internal/storage/storage.go:328
↓ 6 callersMethodpc
pc returns the program counter for this frame; multiple frames may have the same PC value.
stacktrace.go:18
↓ 6 callersMethodprintStep
(pickle *messages.Pickle, pickleStep *messages.PickleStep)
internal/formatters/fmt_pretty.go:388
↓ 6 callersMethodshouldFail
(err error)
suite.go:591
↓ 6 callersMethodstep
(pickle *messages.Pickle, pickleStep *messages.PickleStep)
internal/formatters/fmt_events.go:147
↓ 6 callersMethodstep
(pickleStepID string)
internal/formatters/fmt_progress.go:89
↓ 5 callersFunctionBindFlags
BindFlags binds godog flags to given flag set prefixed by given prefix, without overriding usage
flags.go:53
↓ 5 callersFunctionBuild
Build creates a test package like go test command at given target path. If there are no go files in tested directory, then it simply builds a godog ex
internal/builder/builder.go:91
↓ 5 callersFunctionBuildTestFeature
BuildTestFeature creates a feature for testing purpose. The created feature includes: - a background - one normal scenario with three steps - one out
internal/testutils/utils.go:20
↓ 5 callersFunctionFormat
Format registers a feature suite output formatter by given name, description and FormatterFunc constructor function, to initialize formatter with the
formatters/fmt.go:35
↓ 5 callersMethodMustGetPickleStepResultsByPickleID
MustGetPickleStepResultsByPickleID will retrieve pickle step results by pickle id and panic on error.
internal/storage/storage.go:227
↓ 5 callersFunctiongetTestingT
(ctx context.Context)
testingt.go:200
↓ 5 callersMethodstep
(pickleStepID string)
_examples/custom-formatter/emoji.go:101
↓ 5 callersFunctiontrimAllLines
(s string)
suite_context_test.go:905
↓ 4 callersFunctionAvailableFormatters
AvailableFormatters gives a map of all formatters registered with their name as key and description as value
fmt.go:34
↓ 4 callersMethodBeforeSuite
BeforeSuite registers a function or method to be run once before suite runner. Use it to prepare the test suite for a spin. Connect and prepare datab
test_context.go:80
↓ 4 callersFunctionDefinitionID
DefinitionID ...
internal/formatters/fmt.go:78
↓ 4 callersMethodFailNow
FailNow marks the current test as failed and halts execution of the step.
testingt.go:36
↓ 4 callersFunctionFlagSet
FlagSet allows to manage flags by external suite runner builds flag.FlagSet with godog flags binded Deprecated:
flags.go:44
↓ 4 callersFunctionFormat
Format registers a feature suite output formatter by given name, description and FormatterFunc constructor function, to initialize formatter with the
fmt.go:27
↓ 4 callersMethodFormat
(st fmt.State, verb rune)
stacktrace.go:98
↓ 4 callersMethodMustInsertPickleResult
MustInsertPickleResult will instert a pickle result and panic on error.
internal/storage/storage.go:195
↓ 4 callersFunctionNewBaseFmt
NewBaseFmt creates a new base formatter.
fmt.go:79
↓ 4 callersMethodSet
(s string)
flags.go:227
↓ 4 callersMethodSnippets
Snippets returns code suggestions for undefined steps.
internal/formatters/fmt_base.go:208
↓ 4 callersFunctionclearAttach
(ctx context.Context)
suite.go:99
↓ 4 callersFunctionfail
fail writes a json response with error msg and status header
_examples/db/api.go:67
↓ 4 callersFunctionmustConvertStringToInt
(s string)
internal/formatters/fmt.go:68
↓ 4 callersMethodmustInsert
(table string, obj interface{})
internal/storage/storage.go:303
↓ 4 callersFunctionpickleAttachments
(ctx context.Context)
suite.go:103
↓ 4 callersMethodscenarioLengths
(pickle *messages.Pickle)
internal/formatters/fmt_pretty.go:154
↓ 4 callersMethodstepWithKeyword
(expr interface{}, stepFunc interface{}, keyword formatters.Keyword)
test_context.go:283
↓ 3 callersMethodAfter
After registers a function or method to be run after every scenario.
test_context.go:132
↓ 3 callersFunctionApplyTagFilter
ApplyTagFilter will apply a filter string on the array of pickles and returned the filtered list.
internal/tags/tag_filter.go:11
↓ 3 callersMethodArgs
()
internal/formatters/undefined_snippets_gen.go:41
↓ 3 callersMethodBefore
Before registers a function or method to be run before every scenario. It is a good practice to restore the default state before every scenario, so i
test_context.go:123
↓ 3 callersFunctionBindCommandLineFlags
BindCommandLineFlags binds godog flags to given flag set prefixed by given prefix, without overriding usage
flags_v0110.go:29
↓ 3 callersMethodFail
()
testingt.go:138
next →1–100 of 646, ranked by callers