Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cucumber/godog
/ functions
Functions
646 in github.com/cucumber/godog
⨍
Functions
646
◇
Types & classes
120
↓ 1 callers
Function
NewProgressFmt
NewProgressFmt creates a new progress formatter.
fmt.go:84
↓ 1 callers
Function
Red
Red will accept an interface and return a colorized red string.
colors/colors.go:46
↓ 1 callers
Method
RetrieveFeatures
RetrieveFeatures will parse and return the features based on test suite option Any modification on the parsed features will not have any impact on the
run.go:362
↓ 1 callers
Method
Skip
Skip logs the provided arguments and marks the test as skipped but does not halt execution of the step.
testingt.go:43
↓ 1 callers
Method
Skipf
Skipf logs the formatted message and marks the test as skipped but does not halt execution of the step.
testingt.go:46
↓ 1 callers
Function
WrapOnFlush
WrapOnFlush wrap a `formatters.Formatter` in a `formatters.FlushFormatter`, which only executes when `Flush` is called
internal/formatters/fmt_flushwrap.go:12
↓ 1 callers
Function
bindRootCmdFlags
(flagSet *pflag.FlagSet)
cmd/godog/internal/cmd_root.go:47
↓ 1 callers
Function
buildAndRunGodog
(args []string)
cmd/godog/internal/cmd_run.go:62
↓ 1 callers
Function
buildCmdRunFunc
(cmd *cobra.Command, args []string)
cmd/godog/internal/cmd_build.go:41
↓ 1 callers
Method
buildCukeElement
(pickle *messages.Pickle)
internal/formatters/fmt_cucumber.go:214
↓ 1 callers
Method
buildCukeElements
(pickles []*messages.Pickle)
internal/formatters/fmt_cucumber.go:80
↓ 1 callers
Function
buildCukeFeature
(feat *models.Feature)
internal/formatters/fmt_cucumber.go:189
↓ 1 callers
Method
buildCukeFeatures
(features []*models.Feature)
internal/formatters/fmt_cucumber.go:55
↓ 1 callers
Method
buildCukeStep
(pickle *messages.Pickle, stepResult models.PickleStepResult)
internal/formatters/fmt_cucumber.go:258
↓ 1 callers
Method
buildJUNITPackageSuite
()
internal/formatters/fmt_junit.go:85
↓ 1 callers
Function
buildTempFile
build temporary file content if godog package is not present in currently tested package
internal/builder/builder.go:315
↓ 1 callers
Function
buildTestMain
buildTestMain if given package is valid it scans test files for contexts and produces a testmain source code.
internal/builder/builder.go:357
↓ 1 callers
Function
callstack1
()
stacktrace_test.go:11
↓ 1 callers
Function
callstack2
()
stacktrace_test.go:15
↓ 1 callers
Function
callstack3
()
stacktrace_test.go:19
↓ 1 callers
Function
changeColor
(param []byte)
colors/ansi_windows.go:250
↓ 1 callers
Method
changeColor
()
internal/formatters/fmt_color_tag_test.go:158
↓ 1 callers
Function
compareLists
compareLists compares two lists of strings and prints them with wrapped text.
internal/formatters/fmt_output_test.go:274
↓ 1 callers
Function
convertWinAttr
(textAttr *textAttributes)
colors/ansi_windows.go:239
↓ 1 callers
Function
createModeAnsiColorWriter
NewModeAnsiColorWriter create and initializes a new ansiColorWriter by specifying the outputMode.
colors/writer.go:33
↓ 1 callers
Method
file
file returns the full path to the file that contains the function for this Frame's pc.
stacktrace.go:22
↓ 1 callers
Function
filterImportCfg
filterImportCfg strips unsupported lines from imports configuration.
internal/builder/builder.go:247
↓ 1 callers
Function
findToolDir
()
internal/builder/builder.go:485
↓ 1 callers
Function
flagSet
(opt *Options)
flags_v0110.go:20
↓ 1 callers
Method
flushBuffer
()
colors/ansi_windows.go:314
↓ 1 callers
Method
flushTo
(w io.Writer)
internal/formatters/fmt_color_tag_test.go:72
↓ 1 callers
Function
fmtOutputTest
(fmtName, testName, featureFilePath string)
internal/formatters/fmt_output_test.go:64
↓ 1 callers
Method
getPickleResult
getPickleResult deals with the fact that if there's no result due to 'StopOnFirstFailure' being set, MustGetPickleResult panics.
internal/formatters/fmt_junit.go:53
↓ 1 callers
Method
getPickleStepResult
(stepID string)
internal/formatters/fmt_junit.go:64
↓ 1 callers
Method
getPickleStepResultsByPickleID
(pickleID string)
internal/formatters/fmt_junit.go:75
↓ 1 callers
Function
getVersion
(w http.ResponseWriter, r *http.Request)
_examples/api/api.go:11
↓ 1 callers
Function
godogsToContext
(ctx context.Context, g godogs.Godogs)
_examples/godogs/godogs_test.go:57
↓ 1 callers
Method
iRunFeatureSuiteWithTags
(tags string)
suite_context_test.go:260
↓ 1 callers
Function
importPackage
(dir string)
internal/builder/builder.go:290
↓ 1 callers
Method
isFailed
isFailed will return an error representing the calls to Fail made during this test
testingt.go:177
↓ 1 callers
Function
isFirstPickleAndNoRule
(feature *models.Feature, pickle *messages.Pickle, rule *messages.Rule)
internal/formatters/fmt_pretty.go:381
↓ 1 callers
Function
isFirstScenarioInRule
(rule *messages.Rule, scenario *messages.Scenario)
internal/formatters/fmt_pretty.go:367
↓ 1 callers
Function
isLastStep
(pickle *messages.Pickle, step *messages.PickleStep)
internal/formatters/fmt_events.go:344
↓ 1 callers
Function
isParameterChar
(b byte)
colors/ansi_windows.go:349
↓ 1 callers
Function
isParameterChar
(b byte)
internal/formatters/fmt_color_tag_test.go:99
↓ 1 callers
Function
keywordMatches
(k formatters.Keyword, stepType messages.PickleStepType)
suite.go:558
↓ 1 callers
Method
lengthPickle
(keyword, name string)
internal/formatters/fmt_pretty.go:584
↓ 1 callers
Method
line
line returns the line number of source code of the function for this Frame's pc.
stacktrace.go:40
↓ 1 callers
Function
listFmtOutputTestsFeatureFiles
()
internal/formatters/fmt_output_test.go:43
↓ 1 callers
Function
match
Based on http://behat.readthedocs.org/en/v2.5/guides/6.cli.html#gherkin-filters
internal/tags/tag_filter.go:28
↓ 1 callers
Method
matchStep
(step *messages.PickleStep)
suite.go:119
↓ 1 callers
Function
maxColLengths
longest gives a list of longest columns of all rows in Table
internal/formatters/fmt_pretty.go:495
↓ 1 callers
Method
maybeUndefined
(ctx context.Context, text string, arg interface{}, stepType messages.PickleStepType)
suite.go:408
↓ 1 callers
Function
maybeVendoredGodog
()
internal/builder/builder.go:267
↓ 1 callers
Function
newEmojiFmt
(suite string, out io.Writer)
_examples/custom-formatter/emoji.go:27
↓ 1 callers
Function
oddOrEven
(odd, even int)
run_test.go:735
↓ 1 callers
Function
oddOrEven
(odd, even int)
internal/formatters/fmt_output_test.go:218
↓ 1 callers
Function
ok
ok writes data to response with 200 status
_examples/api/api.go:38
↓ 1 callers
Function
ok
ok writes data to response with 200 status
_examples/db/api.go:81
↓ 1 callers
Function
parseBytes
(path string, feature []byte, dialect string, newIDFunc func() string)
internal/parser/parser.go:57
↓ 1 callers
Function
parseEscapeSequence
(command byte, param []byte)
colors/ansi_windows.go:301
↓ 1 callers
Function
parseFeatureDir
(fsys fs.FS, dir, dialect string, newIDFunc func() string)
internal/parser/parser.go:73
↓ 1 callers
Method
parseFeatures
()
suite_context_test.go:675
↓ 1 callers
Function
parsePath
(fsys fs.FS, path, dialect string, newIDFunc func() string)
internal/parser/parser.go:98
↓ 1 callers
Method
printFeature
(feature *messages.Feature)
internal/formatters/fmt_pretty.go:137
↓ 1 callers
Method
printOutlineExample
(pickle *messages.Pickle, step *messages.PickleStep, backgroundSteps int)
internal/formatters/fmt_pretty.go:246
↓ 1 callers
Method
printSummaryLegend
()
_examples/custom-formatter/emoji.go:92
↓ 1 callers
Method
printUndefinedPickle
(pickle *messages.Pickle)
internal/formatters/fmt_pretty.go:176
↓ 1 callers
Method
resetResponse
(*godog.Scenario)
_examples/api/api_test.go:19
↓ 1 callers
Method
resetResponse
(*godog.Scenario)
_examples/db/api_test.go:27
↓ 1 callers
Method
runAfterScenarioHooks
(ctx context.Context, pickle *messages.Pickle, lastStepErr error)
suite.go:370
↓ 1 callers
Method
runBeforeScenarioHooks
(ctx context.Context, pickle *messages.Pickle)
suite.go:344
↓ 1 callers
Function
runCmdRunFunc
(cmd *cobra.Command, args []string)
cmd/godog/internal/cmd_run.go:45
↓ 1 callers
Function
runGodog
(bin string, args []string)
cmd/godog/internal/cmd_run.go:77
↓ 1 callers
Method
runStep
(ctx context.Context, pickle *Scenario, step *Step, scenarioErr error, isFirst, isLast bool)
suite.go:131
↓ 1 callers
Method
runSubStep
(ctx context.Context, text string, def *models.StepDefinition)
suite.go:479
↓ 1 callers
Function
runWithOptions
(suiteName string, runner runner, opt Options)
run.go:168
↓ 1 callers
Function
runsFromPackage
(fp string)
run.go:304
↓ 1 callers
Function
setConsoleTextAttribute
(hConsoleOutput uintptr, wAttributes uint16)
colors/ansi_windows.go:213
↓ 1 callers
Function
setContextTestingT
(ctx context.Context, dt *testingT)
testingt.go:196
↓ 1 callers
Function
thereShouldBeRemaining
(ctx context.Context, remaining int)
_examples/godogs/godogs_test.go:82
↓ 1 callers
Method
thereWereNumEventsFired
(_ string, expected int, typ string)
suite_context_test.go:755
↓ 1 callers
Function
trimGoPath
(file string)
stacktrace.go:31
↓ 1 callers
Method
users
(w http.ResponseWriter, r *http.Request)
_examples/db/api.go:22
↓ 1 callers
Method
validate
()
internal/builder/builder.go:443
↓ 1 callers
Function
versionCmdRunFunc
(cmd *cobra.Command, args []string)
cmd/godog/internal/cmd_version.go:24
Method
AfterScenario
AfterScenario registers a function or method to be run after every scenario. Deprecated: use After.
test_context.go:189
Method
AfterStep
AfterStep 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
test_context.go:220
Method
Ambiguous
Ambiguous captures ambiguous step.
internal/formatters/fmt_multi_test.go:154
Method
Ambiguous
Ambiguous captures ambiguous step.
internal/formatters/fmt_events.go:322
Method
Ambiguous
Ambiguous captures ambiguous step.
internal/formatters/fmt_base.go:89
Method
Ambiguous
Failed captures failed step.
internal/formatters/fmt_pretty.go:118
Method
Ambiguous
Ambiguous triggers Ambiguous for all added formatters.
internal/formatters/fmt_multi.go:101
Method
Ambiguous
Ambiguous implements formatters.Formatter.
internal/formatters/fmt_flushwrap.go:39
Method
Ambiguous
Ambiguous steps.
internal/formatters/fmt_progress.go:155
Function
AvailableFormatters
AvailableFormatters gives a map of all formatters registered with their name as key and description as value
formatters/fmt.go:46
Function
BaseFormatterFunc
BaseFormatterFunc implements the FormatterFunc for the base formatter.
internal/formatters/fmt_base.go:24
Method
BeforeScenario
BeforeScenario registers a function or method to be run before every scenario. It is a good practice to restore the default state before every scenar
test_context.go:177
Method
BeforeStep
BeforeStep registers a function or method to be run before every step. Deprecated: use ScenarioContext.StepContext() and StepContext.Before.
test_context.go:201
Function
Black
Black will accept an interface and return a colorized black string.
colors/colors.go:56
← previous
next →
201–300 of 646, ranked by callers