MCPcopy Create free account

hub / github.com/vektra/mockery / functions

Functions1,773 in github.com/vektra/mockery

↓ 338 callersMethodGet
()
internal/fixtures/generic.go:34
↓ 233 callersMethodLock
(<-chan struct{})
internal/fixtures/consul.go:4
↓ 233 callersMethodUnlock
()
internal/fixtures/consul.go:5
↓ 170 callersMethodReturn
(v TKeep)
internal/fixtures/mocks_testify_test_test.go:2121
↓ 170 callersFunctionrun
(ctx context.Context, confPathStr string, v3ConfPath string)
internal/cmd/migrate.go:130
↓ 103 callersMethodRun
(run func(t1 TImport))
internal/fixtures/mocks_testify_test_test.go:2108
↓ 100 callersMethodError
()
internal/fixtures/custom_error.go:8
↓ 69 callersMethodReturn
(n int, err error)
internal/fixtures/mocks_io_test.go:92
↓ 41 callersMethodGet
()
internal/fixtures/auto_generated_skip/foo.go:4
↓ 34 callersMethodRun
(run func(p []byte))
internal/fixtures/mocks_io_test.go:79
↓ 30 callersMethodType
()
template/var.go:24
↓ 26 callersMethodAppend
(depType string, msg string)
internal/cmd/migrate.go:113
↓ 25 callersMethodString
()
internal/fixtures/example_project/pkg_with_submodules/submodule/string.go:4
↓ 23 callersMethodGet
(a)
internal/fixtures/iface_typed_param_lowercase/getter_iface_typed_param.go:4
↓ 22 callersMethodName
()
template/package.go:4
↓ 21 callersMethodSprintf
cases: normal argument + variadic argument, w/ and w/o interface type
internal/fixtures/requester_variadic.go:11
↓ 21 callersFunctionaddr
(v T)
config/config.go:66
↓ 19 callersFunctionNewStackErr
(cause error)
internal/stackerr/stackerr.go:14
↓ 15 callersMethodPath
()
template/package.go:5
↓ 13 callersMethodEXPECT
()
internal/fixtures/mocks_testify_test_test.go:1151
↓ 12 callersMethodReturn
(interfaceBMoqParam interfaceB)
internal/fixtures/method_args/same_name_arg_and_type/mocks_testify_same_name_arg_and_type_test.go:83
↓ 11 callersMethodClose
Close provides a mock function for the type MockCloser
internal/fixtures/mocks_io_test.go:217
↓ 8 callersMethodQualifier
Qualifier returns the qualifier which must be used to refer to types declared in the package.
template/package.go:29
↓ 8 callersMethodTypeString
TypeString returns the variable type with the package qualifier in the format 'pkg.Type'.
template/var.go:36
↓ 7 callersFunctionExists
(name string)
internal/file/exists.go:9
↓ 7 callersMethodFooFunc
(*Foo)
internal/fixtures/replace_type_pointers/interface.go:9
↓ 7 callersMethodGet
(string)
internal/fixtures/example_project/pkg_with_subpkgs/subpkg2/subpkg3/foo.go:4
↓ 7 callersMethodRun
(run func(interfaceB1 interfaceB))
internal/fixtures/method_args/same_name_arg_and_type/mocks_testify_same_name_arg_and_type_test.go:70
↓ 7 callersMethodVariadicMany
VariadicMany provides a mock function for the type MockExpecter
internal/fixtures/mocks_testify_test_test.go:1371
↓ 7 callersFunctionderef
(t *T)
config/config.go:70
↓ 7 callersFunctionmergeConfigs
mergeConfigs merges the values from c1 into c2.
config/config.go:270
↓ 6 callersMethodExecute
Execute generates and writes the Moq implementation for the given data.
template/template.go:31
↓ 6 callersMethodFoo
(NilRun)
internal/fixtures/nil_run.go:4
↓ 6 callersMethodGetString
(name string)
internal/cmd/init.go:31
↓ 6 callersMethodRun
(e *zerolog.Event, level zerolog.Level, message string)
tools/cmd/root.go:17
↓ 6 callersMethodVariadic
(ints ...int)
internal/fixtures/expecter.go:7
↓ 5 callersMethodAddName
AddName records name as visible in the current scope. This method does not check for naming collisions, and consequently will not modify the given nam
template/method_scope.go:212
↓ 5 callersMethodEXPECT
()
internal/fixtures/mocks_testify_test_test.go:3279
↓ 5 callersMethodGet
Get provides a mock function for the type MockRequester
internal/fixtures/mocks_testify_test_test.go:3284
↓ 5 callersFunctionGetLogger
(levelStr string)
internal/logging/logging.go:71
↓ 5 callersMethodGetPackageConfig
(ctx context.Context, pkgPath string)
config/config.go:403
↓ 5 callersFunctionGetStack
(err error)
internal/stackerr/stackerr.go:39
↓ 5 callersMethodReturn
()
internal/fixtures/type_alias/mocks_testify_type_alias_test.go:225
↓ 5 callersMethodReturn
(v T3)
internal/fixtures/index_list_expr/mocks_testify_index_list_expr_test.go:89
↓ 5 callersMethodReturn
()
internal/fixtures/example_project/mocks_testify_example_project_test.go:126
↓ 5 callersMethodVariadic
Variadic provides a mock function for the type MockExpecter
internal/fixtures/mocks_testify_test_test.go:1308
↓ 5 callersMethodVariadicMany
(i int, a string, intfs ...interface{})
internal/fixtures/expecter.go:8
↓ 4 callersMethodBar
()
internal/fixtures/unexported/interface.go:4
↓ 4 callersMethodError
()
internal/stackerr/stackerr.go:27
↓ 4 callersFunctionFindInHierarchy
FindInHierarchy looks for a file with any of the names in the hierarchy up to the root folder. It returns the complete path of the file, the content a
internal/file/find.go:22
↓ 4 callersMethodGet
(path string)
internal/fixtures/directive_comments/directive_comments.go:9
↓ 4 callersFunctionNewMockRequester
NewMockRequester creates a new instance of MockRequester. It also registers a testing interface on the mock and a cleanup function to assert the mocks
internal/fixtures/mocks_testify_test_test.go:3258
↓ 4 callersFunctionNewRegistry
New loads the source package info and returns a new instance of Registry.
template/registry.go:37
↓ 4 callersFunctionNewRootConfig
( ctx context.Context, flags *pflag.FlagSet, )
config/config.go:128
↓ 4 callersMethodReturn
(n int, err error)
internal/fixtures/mocks_net_http_test.go:138
↓ 4 callersMethodRun
(run func(v Type, v1 S, s subpkg.S))
internal/fixtures/type_alias/mocks_testify_type_alias_test.go:202
↓ 4 callersMethodRun
(run func(f rt1.RType1))
internal/fixtures/example_project/replace_type/mocks_testify_replace_type_test.go:59
↓ 4 callersMethodRun
(run func())
internal/fixtures/empty_return/mocks_testify_empty_return_test.go:56
↓ 4 callersMethodaddImport
(ctx context.Context, pkg TypesPackage)
template/registry.go:112
↓ 4 callersMethodargCallListSlice
(start, end int, ellipsis bool)
template/method.go:165
↓ 4 callersFunctionmigrateConfig
( ctx context.Context, tbl *tableWriter, v2Config *V2Config, v3Config **config.Config, )
internal/cmd/migrate.go:286
↓ 3 callersMethodAddVar
AddVar allocates a variable instance and adds it to the method scope. Variables names are generated if required and are ensured to be without conflic
template/method_scope.go:118
↓ 3 callersMethodBarFunc
(Bar)
internal/fixtures/replace_type_pointers/interface.go:10
↓ 3 callersMethodCreate
(x interface{})
internal/fixtures/empty_interface.go:4
↓ 3 callersFunctionDocsURL
(relativePath string)
internal/logging/logging.go:58
↓ 3 callersMethodEXPECT
()
internal/fixtures/mocks_testify_test_test.go:5812
↓ 3 callersMethodFoo
Foo provides a mock function for the type MockVariadicWithMultipleReturns
internal/fixtures/mocks_testify_test_test.go:5817
↓ 3 callersMethodFunc
(arg1 *T1, arg2 T2)
internal/fixtures/index_list_expr/index_list_expression.go:4
↓ 3 callersFunctionGetSemverInfo
()
internal/logging/logging.go:37
↓ 3 callersMethodManyArgsReturns
ManyArgsReturns provides a mock function for the type MockExpecter
internal/fixtures/mocks_testify_test_test.go:1156
↓ 3 callersMethodName
Name returns the name of the parameter.
template/param.go:16
↓ 3 callersFunctionNewCommentGroupFromAST
(comments *ast.CommentGroup)
template/comment_group.go:17
↓ 3 callersFunctionNewMockVariadicWithMultipleReturns
NewMockVariadicWithMultipleReturns creates a new instance of MockVariadicWithMultipleReturns. It also registers a testing interface on the mock and a
internal/fixtures/mocks_testify_test_test.go:5791
↓ 3 callersFunctionNewPackage
NewPackage creates a new instance of Package.
template/package.go:16
↓ 3 callersMethodReturn
(s string, err error)
internal/fixtures/directive_comments/mocks_testify_directive_comments_test.go:92
↓ 3 callersMethodReturn
()
internal/fixtures/iface_new_type/mocks_testify_iface_new_type_test.go:63
↓ 3 callersMethodReturn
()
internal/fixtures/example_project/replace_type/mocks_testify_replace_type_test.go:72
↓ 3 callersMethodReturn
(bar1 Bar)
internal/fixtures/replace_type_pointers/mocks_testify_replace_type_pointers_test.go:81
↓ 3 callersMethodRun
(run func(arg1 *T1, arg2 T2))
internal/fixtures/index_list_expr/mocks_testify_index_list_expr_test.go:71
↓ 3 callersMethodRun
(run func())
internal/fixtures/iface_new_type/mocks_testify_iface_new_type_test.go:56
↓ 3 callersMethodRun
(run func(baz *foo.Baz))
internal/fixtures/example_project/mocks_testify_example_project_test.go:113
↓ 3 callersMethodRunAndReturn
(run func(t1 TImport) TKeep)
internal/fixtures/mocks_testify_test_test.go:2126
↓ 3 callersMethodSuggestName
SuggestName creates a new variable name in the lexical scope of the method. It ensures the returned name does not conflict with any other name visible
template/method_scope.go:66
↓ 3 callersMethodTypeString
TypeString returns the string representation of the type of the parameter.
template/param.go:56
↓ 3 callersMethodaddImport
(ctx context.Context, pkg TypesPackage, imports map[string]*Package)
template/method_scope.go:222
↓ 3 callersFunctionaddr
(v T)
internal/cmd/init.go:14
↓ 3 callersMethodargList
(includeName bool)
template/method.go:96
↓ 3 callersMethodbuildTemplateData
( ctx context.Context, // ifaceFilePath is the absolute path of the original interface. ifaceFilePath strin
config/config.go:756
↓ 3 callersFunctionisPathOutsideCurrentGoModRepo
(workingDir string, targetPath string)
config/config.go:828
↓ 3 callersFunctionnewMockinterfaceA
newMockinterfaceA creates a new instance of mockinterfaceA. It also registers a testing interface on the mock and a cleanup function to assert the moc
internal/fixtures/method_args/same_name_arg_and_type/mocks_testify_same_name_arg_and_type_test.go:15
↓ 3 callersFunctionprintStack
(err error)
tools/cmd/root.go:61
↓ 3 callersFunctionptr
(s T)
config/config_test.go:199
↓ 3 callersMethodreturnArgList
(includeNames bool)
template/method.go:203
↓ 2 callersMethodAddImport
addImport adds the given package to the set of imports. It generates a suitable alias if there are any conflicts with previously imported packages. pk
template/registry.go:98
↓ 2 callersMethodBar
()
internal/fixtures/interface_dir_relative/interface.go:4
↓ 2 callersMethodBar
Bar provides a mock function for the type MockFoo
internal/fixtures/interface_dir_relative/mocks/fixtures/interface_dir_relative/mocks.go:41
↓ 2 callersFunctionCleanPath
(filePath string)
internal/file/find.go:12
↓ 2 callersMethodConfigFileUsed
()
config/config.go:247
↓ 2 callersMethodEXPECT
()
internal/fixtures/mocks_testify_test_test.go:5706
↓ 2 callersMethodEXPECT
()
internal/fixtures/empty_return/mocks_testify_empty_return_test.go:36
next →1–100 of 1,773, ranked by callers