MCPcopy Create free account

hub / github.com/cucumber/godog / functions

Functions646 in github.com/cucumber/godog

↓ 3 callersMethodFindRule
FindRule returns the rule to which the given scenario belongs
internal/models/feature.go:17
↓ 3 callersMethodLog
Log will log to the current testing.T log if set, otherwise it will log to stdout
testingt.go:23
↓ 3 callersMethodLog
(args ...interface{})
testingt.go:108
↓ 3 callersMethodLogf
Logf will log a formatted string to the current testing.T log if set, otherwise it will log to stdout
testingt.go:26
↓ 3 callersMethodLogf
(format string, args ...interface{})
testingt.go:117
↓ 3 callersMethodMustGetFeatures
MustGetFeatures will retrieve all features by and panic on error.
internal/storage/storage.go:273
↓ 3 callersMethodMustGetPickle
MustGetPickle will retrieve a pickle by id and panic on error.
internal/storage/storage.go:157
↓ 3 callersMethodMustGetPickleResult
MustGetPickleResult will retrieve a pickle result by id and panic on error.
internal/storage/storage.go:205
↓ 3 callersMethodMustGetPickles
MustGetPickles will retrieve pickles by URI and panic on error.
internal/storage/storage.go:163
↓ 3 callersMethodMustGetTestRunStarted
MustGetTestRunStarted will retrieve the test run started event and panic on error.
internal/storage/storage.go:187
↓ 3 callersMethodMustInsertTestRunStarted
MustInsertTestRunStarted will set the test run started event and panic on error.
internal/storage/storage.go:179
↓ 3 callersFunctionParseFromBytes
(filter, dialect string, featuresInputs []FeatureContent)
internal/parser/parser.go:196
↓ 3 callersMethodSetStorage
(s *storage.Storage)
internal/formatters/fmt_multi.go:25
↓ 3 callersMethodSkipNow
SkipNow marks the current test as skipped and halts execution of the step.
testingt.go:48
↓ 3 callersMethodThen
Then functions identically to Step, but the *StepDefinition will only be matched if the step starts with "Then". "And" and "But" keywords copy the key
test_context.go:279
↓ 3 callersFunctionassertExpectedAndActual
(a expectedAndActualAssertion, expected, actual interface{}, msgAndArgs ...interface{})
suite_context_test.go:884
↓ 3 callersFunctionastContextParse
(src string, t *testing.T)
internal/builder/ast_test.go:30
↓ 3 callersFunctionastContexts
(f *ast.File, selectName string)
internal/builder/ast.go:5
↓ 3 callersFunctionbuildTestPackage
(dir string, files map[string]string)
internal/builder/builder_test.go:148
↓ 3 callersFunctionenvVarsWithoutGopath
()
internal/builder/builder_test.go:178
↓ 3 callersFunctiongodogsFromContext
(ctx context.Context)
_examples/godogs/godogs_test.go:61
↓ 3 callersFunctioninjectAll
(src string)
suite_context_test.go:208
↓ 3 callersFunctionjunitTimeDuration
(from, to time.Time)
internal/formatters/fmt_junit.go:47
↓ 3 callersMethodlengthPickleStep
(keyword, text string)
internal/formatters/fmt_pretty.go:580
↓ 3 callersFunctionline
a line number representation in feature file
internal/formatters/fmt_pretty.go:573
↓ 3 callersFunctionmakeCukeID
(name string)
internal/formatters/fmt_cucumber.go:324
↓ 3 callersMethodmatchStepTextAndType
(text string, stepType messages.PickleStepType)
suite.go:511
↓ 3 callersMethodname
()
flags.go:141
↓ 3 callersFunctionparseSeed
(str string)
run_test.go:749
↓ 3 callersMethodprintScenarioHeader
(pickle *messages.Pickle, astScenario *messages.Scenario, spaceFilling int)
internal/formatters/fmt_pretty.go:169
↓ 3 callersFunctionprintStepDefinitions
(steps []*models.StepDefinition, w io.Writer)
fmt.go:55
↓ 3 callersMethodprintTableRow
(row *messages.TableRow, max []int, clr colors.ColorFunc)
internal/formatters/fmt_pretty.go:351
↓ 3 callersMethodresetBuffer
()
colors/ansi_windows.go:318
↓ 3 callersMethodscenarioLocation
(pickle *messages.Pickle)
internal/formatters/fmt_events.go:331
↓ 3 callersFunctionusage
(set *flag.FlagSet, w io.Writer)
flags.go:164
↓ 2 callersMethodAfterSuite
AfterSuite registers a function or method to be run once after suite runner
test_context.go:86
↓ 2 callersMethodAvailable
Available returns the number of currently available Godogs.
_examples/godogs/godogs.go:31
↓ 2 callersFunctionBuildTestFeatureWithRules
BuildTestFeature creates a feature with rules for testing purpose. The created feature includes: - a background - one normal scenario with three step
internal/testutils/utils.go:68
↓ 2 callersFunctionExtractFeaturePathLine
ExtractFeaturePathLine ...
internal/parser/parser.go:24
↓ 2 callersMethodFailNow
()
testingt.go:142
↓ 2 callersMethodFlush
()
formatters/fmt.go:80
↓ 2 callersFunctionInitializeScenario
InitializeScenario provides steps for godog suite execution and can be used for meta-testing of godog features/steps themselves. Beware, steps or the
suite_context_test.go:39
↓ 2 callersMethodMustGetPickleResults
MustGetPickleResults will retrieve all pickle results and panic on error.
internal/storage/storage.go:211
↓ 2 callersMethodMustGetPickleStepResultsByPickleIDUntilStep
MustGetPickleStepResultsByPickleIDUntilStep will retrieve pickle step results by pickle id from 0..stepID for that pickle.
internal/storage/storage.go:238
↓ 2 callersMethodMustGetStepDefintionMatch
MustGetStepDefintionMatch will retrieve the matched StepDefintion for the step ID and panic on error.
internal/storage/storage.go:298
↓ 2 callersMethodMustInsertStepDefintionMatch
MustInsertStepDefintionMatch will insert the matched StepDefintion for the step ID and panic on error.
internal/storage/storage.go:288
↓ 2 callersMethodScenarioContext
ScenarioContext allows registering scenario hooks.
test_context.go:91
↓ 2 callersMethodWhen
When functions identically to Step, but the *StepDefinition will only be matched if the step starts with "When". "And" and "But" keywords copy the key
test_context.go:271
↓ 2 callersMethodWrite
(data []byte)
colors/no_colors.go:20
↓ 2 callersMethodWrite
(p []byte)
colors/ansi_windows.go:353
↓ 2 callersMethodWrite
(p []byte)
internal/formatters/fmt_color_tag_test.go:103
↓ 2 callersFunctionassertOutput
(t *testing.T, formatter string, expected, actual string)
run_test.go:670
↓ 2 callersFunctionbufErrorPipe
(t *testing.T)
run_test.go:358
↓ 2 callersFunctionbuildTestCommand
(t *testing.T, wd, featureFile string)
internal/builder/builder_test.go:162
↓ 2 callersFunctioncallStack
()
stacktrace.go:111
↓ 2 callersMethodcleanupSnippet
(snip string)
suite_context_test.go:359
↓ 2 callersFunctioncontains
(tags []*messages.PickleTag, tag string)
internal/tags/tag_filter.go:52
↓ 2 callersFunctionconvertTextAttr
(winAttr uint16)
colors/ansi_windows.go:229
↓ 2 callersFunctionfail
fail writes a json response with error msg and status header
_examples/api/api.go:25
↓ 2 callersFunctionfilterFeatures
(filter string, features []*models.Feature)
internal/parser/parser.go:233
↓ 2 callersMethodflushTo
(w io.Writer)
colors/ansi_windows.go:322
↓ 2 callersFunctiongetConsoleScreenBufferInfo
(hConsoleOutput uintptr)
colors/ansi_windows.go:202
↓ 2 callersFunctiongetDefaultOptions
()
run.go:395
↓ 2 callersMethodiRunFeatureSuiteWithTagsAndFormatter
(filter string, fmtFunc FormatterFunc)
suite_context_test.go:273
↓ 2 callersFunctionlongestExampleRow
(t *messages.Examples, clrs ...colors.ColorFunc)
internal/formatters/fmt_pretty.go:520
↓ 2 callersMethodlongestStep
(steps []*messages.Step, pickleLength int)
internal/formatters/fmt_pretty.go:559
↓ 2 callersFunctionmakeRandomSeed
Choose randomly assigns a convenient pseudo-random seed value. The resulting seed will be between `1-99999` for later ease of specification.
flags_v0110.go:16
↓ 2 callersMethodmaybeSubSteps
(ctx context.Context, result interface{})
suite.go:447
↓ 2 callersFunctionnormalise
(s string)
internal/formatters/fmt_output_test.go:196
↓ 2 callersFunctionnormaliseLocalImportPath
(dir string)
internal/builder/builder.go:287
↓ 2 callersFunctionparseFeatureFile
(fsys fs.FS, path, dialect string, newIDFunc func() string)
internal/parser/parser.go:36
↓ 2 callersFunctionparseImport
parseImport parses the import path to deal with go module.
internal/builder/builder.go:404
↓ 2 callersFunctionparseProgressOutput
(output string)
run_test.go:690
↓ 2 callersMethodprintDocString
(docString *messages.DocString)
internal/formatters/fmt_pretty.go:461
↓ 2 callersMethodprintTable
print table with aligned table cells @TODO: need to make example header cells bold
internal/formatters/fmt_pretty.go:479
↓ 2 callersMethodprintTableHeader
(row *messages.TableRow, max []int)
internal/formatters/fmt_pretty.go:363
↓ 2 callersFunctionprocessPackageTestFiles
processPackageTestFiles runs through ast of each test file pack and looks for godog suite contexts to register on run
internal/builder/builder.go:468
↓ 2 callersMethodresetBuffer
()
internal/formatters/fmt_color_tag_test.go:68
↓ 2 callersMethodrunAfterStepHooks
(ctx context.Context, step *Step, status StepResultStatus, err error)
suite.go:323
↓ 2 callersMethodrunBeforeStepHooks
(ctx context.Context, step *Step, err error)
suite.go:296
↓ 2 callersMethodrunPickle
(pickle *messages.Pickle)
suite.go:603
↓ 2 callersMethodrunSteps
(ctx context.Context, pickle *Scenario, steps []*Step)
suite.go:574
↓ 2 callersFunctionsetupStopOnFailureSteps
setupStopOnFailureSteps registers the step definitions for the stop-on-failure test
internal/formatters/fmt_junit_test.go:88
↓ 2 callersFunctiontestRunWithOptions
( t *testing.T, opts Options, scenarioInitializer func(*ScenarioContext), )
run_test.go:646
↓ 2 callersFunctionwrapString
wrapString wraps a string into chunks of the given width.
internal/formatters/fmt_output_test.go:263
↓ 1 callersMethodAdd
Add increments Godogs count.
_examples/godogs/godogs.go:11
↓ 1 callersMethodAdd
Add adds formatter with output writer.
internal/formatters/fmt_multi.go:115
↓ 1 callersFunctionCreateBuildCmd
CreateBuildCmd creates the build subcommand.
cmd/godog/internal/cmd_build.go:18
↓ 1 callersFunctionCreateRootCmd
CreateRootCmd creates the root command.
cmd/godog/internal/cmd_root.go:14
↓ 1 callersFunctionCreateRunCmd
CreateRunCmd creates the run subcommand.
cmd/godog/internal/cmd_run.go:20
↓ 1 callersFunctionCreateVersionCmd
CreateVersionCmd creates the version subcommand.
cmd/godog/internal/cmd_version.go:13
↓ 1 callersMethodEat
Eat decrements Godogs count or fails if there is not enough available.
_examples/godogs/godogs.go:16
↓ 1 callersFunctionFindFmt
FindFmt searches available formatters registered and returns FormaterFunc matched by given format name or nil otherwise
formatters/fmt.go:21
↓ 1 callersMethodFormatterFunc
FormatterFunc implements the FormatterFunc for the multi formatter.
internal/formatters/fmt_multi.go:128
↓ 1 callersMethodGiven
Given functions identically to Step, but the *StepDefinition will only be matched if the step starts with "Given". "And" and "But" keywords copy the k
test_context.go:263
↓ 1 callersFunctionGreen
Green will accept an interface and return a colorized green string.
colors/colors.go:41
↓ 1 callersFunctionLog
Log will log test output. If called in the context of a test and testing.T has been registered, this will log using the step's testing.T, else it will
testingt.go:65
↓ 1 callersFunctionLogf
Logf will log test output. If called in the context of a test and testing.T has been registered, this will log using the step's testing.T, else it wil
testingt.go:55
↓ 1 callersFunctionLoggedMessages
LoggedMessages returns an array of any logged messages that have been recorded during the test through calls to godog.Log / godog.Logf or via operatio
testingt.go:75
↓ 1 callersFunctionNewProgress
NewProgress creates a new progress formatter.
internal/formatters/fmt_progress.go:24
← previousnext →101–200 of 646, ranked by callers