MCPcopy Create free account

hub / github.com/vektra/mockery / functions

Functions1,773 in github.com/vektra/mockery

↓ 2 callersFunctionExtractDirectiveConfig
ExtractDirectiveConfig parses interface's documentation from a declaration node and extracts mockery's directive configuration. Mockery directives ar
config/config.go:863
↓ 2 callersMethodFilePath
()
config/config.go:666
↓ 2 callersMethodFoo
Foo provides a mock function for the type MockVariadicWithMultipleReturnsUnrollVariadic
internal/fixtures/mocks_testify_test_test.go:5711
↓ 2 callersMethodGetReplacement
(pkgPath string, typeName string)
config/config.go:849
↓ 2 callersMethodInitialize
(ctx context.Context)
config/config.go:323
↓ 2 callersMethodMethodScope
MethodScope returns a new MethodScope.
template/registry.go:78
↓ 2 callersFunctionNew
New returns a new instance of Template.
template/template.go:20
↓ 2 callersFunctionNewDefaultKoanf
(ctx context.Context)
config/config.go:78
↓ 2 callersFunctionNewInterface
( name string, typeSpec *ast.TypeSpec, genDecl *ast.GenDecl, filepath string, fileSyntax *ast.File, pkg
internal/interface.go:20
↓ 2 callersFunctionNewInterfaceConfig
()
config/config.go:567
↓ 2 callersFunctionNewMockVariadicWithMultipleReturnsUnrollVariadic
NewMockVariadicWithMultipleReturnsUnrollVariadic creates a new instance of MockVariadicWithMultipleReturnsUnrollVariadic. It also registers a testing
internal/fixtures/mocks_testify_test_test.go:5685
↓ 2 callersFunctionNewPackageConfig
()
config/config.go:426
↓ 2 callersFunctionNewStackErrf
(cause error, f string, args ...any)
internal/stackerr/stackerr.go:21
↓ 2 callersMethodNoArg
NoArg provides a mock function for the type MockExpecter
internal/fixtures/mocks_testify_test_test.go:1224
↓ 2 callersMethodNoArgs
()
internal/fixtures/empty_return/interface.go:4
↓ 2 callersMethodNoReturn
NoReturn provides a mock function for the type MockExpecter
internal/fixtures/mocks_testify_test_test.go:1268
↓ 2 callersMethodPath
Path is the full package import path (without vendor).
template/package.go:42
↓ 2 callersMethodReturn
(bazMoqParam baz)
mocks_testify_main_test.go:74
↓ 2 callersMethodReturn
(n int)
github.com/LandonTClipp/example-go-repo/mocks_testify_foo_test.go:81
↓ 2 callersMethodReturn
(s string, err error)
internal/cmd/mocks_testify_cmd_test.go:90
↓ 2 callersMethodReturn
(s string)
internal/fixtures/multi_template/mocks_testify_multitemplate_test.go:74
↓ 2 callersMethodReturn
(v T)
internal/fixtures/iface_typed_param/mocks_testify_iface_typed_param_test.go:78
↓ 2 callersMethodReturn
(s string)
internal/fixtures/include_auto_generated/mocks_testify_includeautogenerated_test.go:74
↓ 2 callersMethodReturn
(s string)
internal/fixtures/interface_dir_relative/mocks/fixtures/interface_dir_relative/mocks.go:74
↓ 2 callersMethodReturn
(v1 a)
internal/fixtures/iface_typed_param_lowercase/mocks_testify_iface_typed_param_lowercase_test.go:83
↓ 2 callersMethodRun
(e *zerolog.Event, level zerolog.Level, msg string)
internal/logging/logging.go:67
↓ 2 callersMethodRun
()
internal/cmd/mockery.go:193
↓ 2 callersMethodRun
(run func(bytes []byte))
internal/fixtures/mocks_net_http_test.go:125
↓ 2 callersMethodRun
(run func(path string, handler http.Handler))
internal/fixtures/directive_comments/server_with_different_file.go:60
↓ 2 callersMethodRun
(run func(path string))
internal/fixtures/directive_comments/mocks_testify_directive_comments_test.go:79
↓ 2 callersMethodRunAndReturn
(run func())
internal/fixtures/empty_return/mocks_testify_empty_return_test.go:68
↓ 2 callersMethodStack
()
internal/stackerr/stackerr.go:35
↓ 2 callersMethodTypeStringEllipsis
TypeStringEllipsis returns the string representation of the type of the parameter. If it is a variadic parameter, it will be represented as a variadic
template/param.go:64
↓ 2 callersMethodVerifyJSONSchema
VerifyJSONSchema verifies that the contents of the type adhere to the schema defined by the schema argument. This method is not meant to be used dire
template/template_data.go:20
↓ 2 callersMethodWithArgs
(a int, b string)
internal/fixtures/empty_return/interface.go:5
↓ 2 callersFunctiondeCapitalise
(s string)
template/var.go:168
↓ 2 callersFunctiondownload
(ctx context.Context, url string)
internal/remote_template.go:37
↓ 2 callersFunctionfindPkgPath
findPkgPath returns the fully-qualified go import path of a given dir. The dir must be relative to a go.mod file. In the case it isn't, an error is re
internal/template_generator.go:59
↓ 2 callersFunctiongetFixturePath
getFixturePath returns an absolute path to a fixture sub-directory or file. getFixturePath("src.go") returns "/path/to/pkg/fixtures/src.go" getFixtur
internal/mockery_test.go:26
↓ 2 callersFunctiongetMinorSemver
(semver string)
internal/logging/logging.go:48
↓ 2 callersFunctiongetTypePath
(t types.Type)
internal/template_generator.go:192
↓ 2 callersFunctioninitRun
(args []string, params argGetter)
internal/cmd/init.go:34
↓ 2 callersFunctionisConstraintIdent
(id *ast.Ident, pkgs []*packages.Package)
internal/parse.go:214
↓ 2 callersFunctionisConstraintInterface
(iface *types.Interface)
internal/parse.go:226
↓ 2 callersFunctionisConstraintSelector
(sel *ast.SelectorExpr, pkgs []*packages.Package)
internal/parse.go:202
↓ 2 callersFunctionlogFatalErr
(ctx context.Context, err error)
internal/cmd/mockery.go:63
↓ 2 callersMethodmethodArg
(includeNames bool)
template/param.go:20
↓ 2 callersFunctionnewMockinterfaceB0
newMockinterfaceB0 creates a new instance of mockinterfaceB0. It also registers a testing interface on the mock and a cleanup function to assert the m
internal/fixtures/method_args/same_name_arg_and_type/mocks_testify_same_name_arg_and_type_test.go:272
↓ 2 callersMethodpopulateImportNamedType
( ctx context.Context, t interface { Obj() *types.TypeName TypeArgs() *types.TypeList }, imports map[s
template/method_scope.go:228
↓ 2 callersMethodpopulateImportsHelper
populateImportsHelper extracts all the package imports for a given type recursively. The imported packages by a single type can be more than one (ex:
template/method_scope.go:261
↓ 2 callersMethodsignature
(includeNames bool)
template/method.go:53
↓ 2 callersFunctiontoPtr
(i int)
internal/fixtures/iface_typed_param_lowercase/main_test.go:30
↓ 1 callersMethodAppend
(ctx context.Context, iface *internal.Interface)
internal/cmd/mockery.go:144
↓ 1 callersMethodArgCallList
ArgCallList is the string representation of method call parameters, ex: 's, n, foo'. In case of a last variadic parameter, it will be of the format 's
template/method.go:143
↓ 1 callersMethodBar
Bar provides a mock function for the type MockFoo
github.com/LandonTClipp/example-go-repo/mocks_testify_foo_test.go:41
↓ 1 callersMethodBar
Bar calls BarFunc.
internal/fixtures/multi_template/mocks_matryer_multitemplate_test.go:46
↓ 1 callersMethodBar
Bar provides a mock function for the type MockTestifyFoo
internal/fixtures/multi_template/mocks_testify_multitemplate_test.go:41
↓ 1 callersMethodBar
Bar provides a mock function for the type MockFoo
internal/fixtures/include_auto_generated/mocks_testify_includeautogenerated_test.go:41
↓ 1 callersMethodCallName
CallName returns the string representation of the parameter to be used for a method call. For a variadic paramter, it will be of the format 'foos...'
template/param.go:47
↓ 1 callersMethodDoB
SomeMethod - contains args with the same names of the type and arg
internal/fixtures/method_args/same_name_arg_and_type/entity.go:6
↓ 1 callersMethodDoB0
(interfaceB interfaceB0)
internal/fixtures/method_args/same_name_arg_and_type/entity.go:7
↓ 1 callersMethodDoB0v2
(interfaceB0 interfaceB0)
internal/fixtures/method_args/same_name_arg_and_type/entity.go:8
↓ 1 callersMethodDoSomething
DoSomething provides a mock function for the type MockPanicOnNoReturnValue
internal/fixtures/mocks_testify_test_test.go:3213
↓ 1 callersMethodDoSomething
()
internal/fixtures/panic_err.go:4
↓ 1 callersMethodEXPECT
()
mocks_testify_main_test.go:36
↓ 1 callersMethodEXPECT
()
github.com/LandonTClipp/example-go-repo/mocks_testify_foo_test.go:36
↓ 1 callersMethodEXPECT
()
internal/cmd/mocks_testify_cmd_test.go:36
↓ 1 callersMethodEXPECT
()
internal/fixtures/mocks_testify_test_test.go:2850
↓ 1 callersMethodEXPECT
()
internal/fixtures/mocks_testify_test_test.go:3141
↓ 1 callersMethodEXPECT
()
internal/fixtures/mocks_testify_test_test.go:3208
↓ 1 callersMethodEXPECT
()
internal/fixtures/mocks_testify_test_test.go:5626
↓ 1 callersMethodEXPECT
()
internal/fixtures/type_alias/mocks_testify_type_alias_test.go:37
↓ 1 callersMethodEXPECT
()
internal/fixtures/multi_template/mocks_testify_multitemplate_test.go:36
↓ 1 callersMethodEXPECT
()
internal/fixtures/index_list_expr/mocks_testify_index_list_expr_test.go:36
↓ 1 callersMethodEXPECT
()
internal/fixtures/index_list_expr/mocks_testify_index_list_expr_test.go:122
↓ 1 callersMethodEXPECT
()
internal/fixtures/iface_typed_param/mocks_testify_iface_typed_param_test.go:38
↓ 1 callersMethodEXPECT
()
internal/fixtures/iface_new_type/mocks_testify_iface_new_type_test.go:36
↓ 1 callersMethodEXPECT
()
internal/fixtures/include_auto_generated/mocks_testify_includeautogenerated_test.go:36
↓ 1 callersMethodEXPECT
()
internal/fixtures/interface_dir_relative/mocks/fixtures/interface_dir_relative/mocks.go:36
↓ 1 callersMethodEXPECT
()
internal/fixtures/example_project/mocks_testify_example_project_test.go:159
↓ 1 callersMethodEXPECT
()
internal/fixtures/iface_typed_param_lowercase/mocks_testify_iface_typed_param_lowercase_test.go:36
↓ 1 callersMethodExecDoB
()
internal/fixtures/method_args/same_name_arg_and_type/entity_test.go:14
↓ 1 callersMethodExecDoB0
()
internal/fixtures/method_args/same_name_arg_and_type/entity_test.go:19
↓ 1 callersMethodExecDoB0v2
()
internal/fixtures/method_args/same_name_arg_and_type/entity_test.go:24
↓ 1 callersFunctionExecute
Execute executes the cobra CLI workflow
internal/cmd/mockery.go:69
↓ 1 callersMethodFetchData
FetchData provides a mock function for the type MockIssue766
internal/fixtures/mocks_testify_test_test.go:2855
↓ 1 callersMethodFetchData
( fetchFunc func(x ...int) ([]int, error), )
internal/fixtures/issue_766.go:4
↓ 1 callersFunctionFirstIsLower
FirstIsLower returns whether or not the string's first character is lowercase. If the string is empty, false is returned. If the first character is a
template_funcs/functions.go:109
↓ 1 callersFunctionFoo
(s Stringer)
internal/fixtures/example_project/string_test.go:9
↓ 1 callersMethodFoo
Foo provides a mock function for the type MockNilRun
internal/fixtures/mocks_testify_test_test.go:3146
↓ 1 callersMethodFoo
Foo provides a mock function for the type MockAliasToInterface3
internal/fixtures/type_alias/mocks_testify_type_alias_test.go:42
↓ 1 callersMethodFoo
()
internal/fixtures/type_alias/interface.go:12
↓ 1 callersMethodFunc
Func provides a mock function for the type MockIndexListExpr
internal/fixtures/index_list_expr/mocks_testify_index_list_expr_test.go:127
↓ 1 callersMethodGenerate
( ctx context.Context, interfaces []*Interface, )
internal/template_generator.go:383
↓ 1 callersMethodGet
Get calls GetFunc.
internal/fixtures/mocks_matryer_test_test.go:3000
↓ 1 callersMethodGet
Get calls GetFunc.
internal/fixtures/mocks_matryer_test_test.go:3084
↓ 1 callersMethodGetInterfaceConfig
(ctx context.Context, interfaceName string, directiveConfig *Config)
config/config.go:450
↓ 1 callersMethodGetLocalPrefix
()
config/config.go:601
↓ 1 callersFunctionGetMinorSemver
GetMinorSemver returns the semantic version up to and including the minor version.
internal/logging/logging.go:54
↓ 1 callersMethodGetPackages
GetPackages returns a list of the packages that are defined in the `packages` config section.
config/config.go:413
← previousnext →101–200 of 1,773, ranked by callers