Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/vektra/mockery
/ functions
Functions
1,773 in github.com/vektra/mockery
⨍
Functions
1,773
◇
Types & classes
658
↓ 1 callers
Function
GetRootApp
(ctx context.Context, flags *pflag.FlagSet)
internal/cmd/mockery.go:83
↓ 1 callers
Method
Imports
()
template/data.go:22
↓ 1 callers
Method
LookupInterface
LookupInterface returns the underlying interface definition of the given interface name.
template/registry.go:58
↓ 1 callers
Method
ManyArgsReturns
(str string, i int)
internal/fixtures/expecter.go:6
↓ 1 callers
Method
Method1
()
internal/fixtures/iface_new_type/interface.go:6
↓ 1 callers
Method
Method1
Method1 provides a mock function for the type MockInterface1
internal/fixtures/iface_new_type/mocks_testify_iface_new_type_test.go:41
↓ 1 callers
Method
MethodArg
MethodArg is the representation of the parameter in the function signature, ex: 'name a.Type'.
template/param.go:35
↓ 1 callers
Method
MethodArgNoName
MethodArgNoName is the same as MethodArg except the argument name is not included.
template/param.go:40
↓ 1 callers
Method
NameExists
NameExists returns whether or not the name is currently visible in the scope.
template/method_scope.go:217
↓ 1 callers
Function
NewComments
(typeSpec *ast.TypeSpec, genDecl *ast.GenDecl)
template/comments.go:62
↓ 1 callers
Function
NewData
( pkgName string, srcPkgQualifier string, imports Packages, interfaces Interfaces, templateData TemplateD
template/data.go:26
↓ 1 callers
Function
NewInitCmd
()
internal/cmd/init.go:18
↓ 1 callers
Function
NewInterface
( name string, structName string, typeParams []TypeParam, methods []Method, templateData TemplateData, c
template/interface.go:15
↓ 1 callers
Function
NewInterfaceCollection
( srcPkgPath string, outFilePath string, srcPkg *packages.Package, outPkgName string, template string, t
internal/cmd/mockery.go:118
↓ 1 callers
Function
NewMethodScope
(r *Registry)
template/method_scope.go:32
↓ 1 callers
Function
NewMigrateCmd
()
internal/cmd/migrate.go:21
↓ 1 callers
Function
NewMockAliasToInterface3
NewMockAliasToInterface3 creates a new instance of MockAliasToInterface3. It also registers a testing interface on the mock and a cleanup function to
internal/fixtures/type_alias/mocks_testify_type_alias_test.go:16
↓ 1 callers
Function
NewMockEmptyReturn
NewMockEmptyReturn creates a new instance of MockEmptyReturn. It also registers a testing interface on the mock and a cleanup function to assert the m
internal/fixtures/empty_return/mocks_testify_empty_return_test.go:15
↓ 1 callers
Function
NewMockFoo
NewMockFoo creates a new instance of MockFoo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectation
github.com/LandonTClipp/example-go-repo/mocks_testify_foo_test.go:15
↓ 1 callers
Function
NewMockFoo
NewMockFoo creates a new instance of MockFoo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectation
internal/fixtures/include_auto_generated/mocks_testify_includeautogenerated_test.go:15
↓ 1 callers
Function
NewMockIndexListExpr
NewMockIndexListExpr creates a new instance of MockIndexListExpr. It also registers a testing interface on the mock and a cleanup function to assert t
internal/fixtures/index_list_expr/mocks_testify_index_list_expr_test.go:101
↓ 1 callers
Function
NewMockInterface1
NewMockInterface1 creates a new instance of MockInterface1. It also registers a testing interface on the mock and a cleanup function to assert the moc
internal/fixtures/iface_new_type/mocks_testify_iface_new_type_test.go:15
↓ 1 callers
Function
NewMockIssue766
NewMockIssue766 creates a new instance of MockIssue766. It also registers a testing interface on the mock and a cleanup function to assert the mocks e
internal/fixtures/mocks_testify_test_test.go:2829
↓ 1 callers
Function
NewMockNilRun
NewMockNilRun creates a new instance of MockNilRun. It also registers a testing interface on the mock and a cleanup function to assert the mocks expec
internal/fixtures/mocks_testify_test_test.go:3120
↓ 1 callers
Function
NewMockPanicOnNoReturnValue
NewMockPanicOnNoReturnValue creates a new instance of MockPanicOnNoReturnValue. It also registers a testing interface on the mock and a cleanup functi
internal/fixtures/mocks_testify_test_test.go:3187
↓ 1 callers
Function
NewMockStringer
NewMockStringer creates a new instance of MockStringer. It also registers a testing interface on the mock and a cleanup function to assert the mocks e
internal/fixtures/example_project/mocks_testify_example_project_test.go:138
↓ 1 callers
Function
NewMockTestifyFoo
NewMockTestifyFoo creates a new instance of MockTestifyFoo. It also registers a testing interface on the mock and a cleanup function to assert the moc
internal/fixtures/multi_template/mocks_testify_multitemplate_test.go:15
↓ 1 callers
Function
NewMockVariadicReturnFunc
NewMockVariadicReturnFunc creates a new instance of MockVariadicReturnFunc. It also registers a testing interface on the mock and a cleanup function t
internal/fixtures/mocks_testify_test_test.go:5605
↓ 1 callers
Function
NewNodeVisitor
(ctx context.Context)
internal/node_visitor.go:22
↓ 1 callers
Function
NewRemoteTemplate
(templateURL string, schemaURL string)
internal/remote_template.go:68
↓ 1 callers
Function
NewRootCmd
()
internal/cmd/mockery.go:26
↓ 1 callers
Function
NewShowConfigCmd
()
internal/cmd/showconfig.go:15
↓ 1 callers
Function
NewTagger
(v *viper.Viper)
tools/cmd/tag.go:143
↓ 1 callers
Function
NewVersionCmd
()
internal/cmd/version.go:10
↓ 1 callers
Method
NoArg
()
internal/fixtures/expecter.go:4
↓ 1 callers
Method
NoArgs
NoArgs calls NoArgsFunc.
internal/fixtures/empty_return/mocks_matryer_empty_return_test.go:60
↓ 1 callers
Method
NoReturn
(str string)
internal/fixtures/expecter.go:5
↓ 1 callers
Method
Options
()
config/config.go:605
↓ 1 callers
Method
ParsePackages
(ctx context.Context, packageNames []string)
internal/parse.go:52
↓ 1 callers
Method
ParseTemplates
ParseTemplates parses various templated strings in the config struct into their fully defined values. This mutates the config object passed. An *Inter
config/config.go:692
↓ 1 callers
Method
Render
()
internal/cmd/migrate.go:126
↓ 1 callers
Method
ResolveVariableNameCollisions
ResolveVariableNameCollisions modifies argument names if they are found to collide with any other names visible to the scope. This method is not mean
template/method_scope.go:49
↓ 1 callers
Method
Return
(s string)
internal/fixtures/unexported/mocks_testify_unexported_test.go:74
↓ 1 callers
Method
Return
()
internal/fixtures/directive_comments/server_with_different_file.go:78
↓ 1 callers
Method
Return
(s string)
internal/fixtures/recursive_generation/mocks_testify_recursive_generation_test.go:74
↓ 1 callers
Method
Return
(s string)
internal/fixtures/recursive_generation/subpkg1/mocks_testify_subpkg1_test.go:74
↓ 1 callers
Method
Return
(s string)
internal/fixtures/recursive_generation/subpkg2/mocks_testify_subpkg2_test.go:74
↓ 1 callers
Method
Return
(s string)
internal/fixtures/recursive_generation_with_subpkg_exclude/mocks.go:74
↓ 1 callers
Method
Return
(s string)
internal/fixtures/recursive_generation_with_subpkg_exclude/subpkg1/mocks.go:74
↓ 1 callers
Method
Return
(s string)
internal/fixtures/buildtag/comment/mocks_testify_comment_test.go:96
↓ 1 callers
Method
Return
(s string)
internal/fixtures/auto_generated_skip/mocks_testify_autogeneratedskip_test.go:74
↓ 1 callers
Method
Return
(internalStringType InternalStringType)
internal/fixtures/inpackage/subpkg/mocks_testify_inpackage_test.go:76
↓ 1 callers
Method
Return
(s string)
internal/fixtures/interface_dir_relative/internal/fixtures/interface_dir_relative/mocks.go:74
↓ 1 callers
Method
Return
()
internal/fixtures/empty_return/mocks_testify_empty_return_test.go:63
↓ 1 callers
Method
Run
(run func(f func([]int)))
internal/fixtures/mocks_testify_test_test.go:139
↓ 1 callers
Method
Run
(run func(str string))
internal/fixtures/mocks_testify_test_test.go:973
↓ 1 callers
Method
Run
(run func(str string))
internal/fixtures/mocks_testify_test_test.go:1284
↓ 1 callers
Method
Run
(run func(j int, is ...interface{}))
internal/fixtures/mocks_testify_test_test.go:1497
↓ 1 callers
Method
Run
(run func(c C))
internal/fixtures/mocks_testify_test_test.go:2561
↓ 1 callers
Method
Run
(run func(arg1 ...map[string]interface{}))
internal/fixtures/mocks_testify_test_test.go:2966
↓ 1 callers
Method
Run
(run func())
internal/fixtures/mocks_testify_test_test.go:3034
↓ 1 callers
Method
Run
(run func(obj Sibling))
internal/fixtures/mocks_testify_test_test.go:3095
↓ 1 callers
Method
Run
(run func(nilRun NilRun))
internal/fixtures/mocks_testify_test_test.go:3162
↓ 1 callers
Method
Run
(run func())
internal/fixtures/mocks_testify_test_test.go:3535
↓ 1 callers
Method
Run
(run func(test1 string))
internal/fixtures/mocks_testify_test_test.go:3756
↓ 1 callers
Method
Run
(run func())
internal/fixtures/mocks_testify_test_test.go:4492
↓ 1 callers
Method
Run
(run func(ptr *unsafe.Pointer))
internal/fixtures/mocks_testify_test_test.go:5496
↓ 1 callers
Method
Run
(run func(one string, two ...string))
internal/fixtures/mocks_testify_test_test.go:5945
↓ 1 callers
Method
Run
(run func(statusCode int))
internal/fixtures/mocks_net_http_test.go:165
↓ 1 callers
Method
Run
(run func(path string, handler http.Handler))
internal/fixtures/directive_comments/server_with_different_file.go:133
↓ 1 callers
Method
Run
(run func(path string, handler http.Handler))
internal/fixtures/directive_comments/mocks_testify_directive_comments_test.go:147
↓ 1 callers
Method
Run
(run func())
internal/fixtures/directive_comments/mocks_testify_directive_comments_test.go:218
↓ 1 callers
Method
Run
(run func())
internal/fixtures/iface_typed_param/mocks_testify_iface_typed_param_test.go:71
↓ 1 callers
Method
Run
(run func())
internal/fixtures/iface_new_type/mocks_testify_iface_new_type_test.go:116
↓ 1 callers
Method
Run
(run func())
internal/fixtures/iface_new_type/mocks_testify_iface_new_type_test.go:176
↓ 1 callers
Method
Run
(run func(f rt2.RType2))
internal/fixtures/example_project/replace_type/mocks_testify_replace_type_test.go:99
↓ 1 callers
Method
Run
(run func(f rt2.RType2))
internal/fixtures/example_project/replace_type/mocks_testify_replace_type_test.go:166
↓ 1 callers
Method
Run
(run func(f rt2.RType2))
internal/fixtures/example_project/replace_type/mocks_testify_replace_type_test.go:206
↓ 1 callers
Method
Run
(run func(bar Bar))
internal/fixtures/replace_type_pointers/mocks_testify_replace_type_pointers_test.go:68
↓ 1 callers
Method
Run
(run func(v a))
internal/fixtures/iface_typed_param_lowercase/mocks_testify_iface_typed_param_lowercase_test.go:70
↓ 1 callers
Method
Run
(run func(a int, b string))
internal/fixtures/empty_return/mocks_testify_empty_return_test.go:91
↓ 1 callers
Method
SampleMethod
SampleMethod provides a mock function for the type MockVariadicReturnFunc
internal/fixtures/mocks_testify_test_test.go:5631
↓ 1 callers
Method
SampleMethod
(str string)
internal/fixtures/variadic_return_func.go:4
↓ 1 callers
Method
Schema
Schema returns the JSON Schema as a string. It downloads the remote schema once and caches the result for future calls.
internal/remote_template.go:91
↓ 1 callers
Method
ShouldExcludeSubpkg
(pkgPath string)
config/config.go:670
↓ 1 callers
Method
ShouldGenerateInterface
( ctx context.Context, interfaceName string, ifaceConfig Config, hasDirectiveComment bool, )
config/config.go:500
↓ 1 callers
Method
Signature
Signature returns the string representation of the method's signature. For example, if a method was declared as "func (b Bar) Foo(s string) error", th
template/method.go:60
↓ 1 callers
Method
SrcPkg
()
template/registry.go:47
↓ 1 callers
Method
SrcPkgName
SrcPkgName returns the name of the source package.
template/registry.go:52
↓ 1 callers
Method
Tag
()
tools/cmd/tag.go:162
↓ 1 callers
Method
Template
Template will return the template string. It downloads the remote template once and caches the result for future calls.
internal/remote_template.go:77
↓ 1 callers
Method
Unwrap
()
internal/stackerr/stackerr.go:31
↓ 1 callers
Function
Warn
(ctx context.Context, prefix string, message string, fields map[string]any)
internal/logging/logging.go:98
↓ 1 callers
Method
Write
Write provides a mock function for the type MockWriter
internal/fixtures/mocks_io_test.go:130
↓ 1 callers
Method
WriteString
WriteString provides a mock function for the type MockStringWriter
internal/fixtures/mocks_io_test.go:2555
↓ 1 callers
Function
basicTypeVarName
(b *types.Basic)
template/var.go:149
↓ 1 callers
Function
capitalise
(s string)
template/var.go:167
↓ 1 callers
Function
checkDeprecatedTemplateVariables
( ctx context.Context, conf *V2Config, tbl *tableWriter, )
internal/cmd/migrate.go:229
↓ 1 callers
Method
createTag
(repo *git.Repository, version string)
tools/cmd/tag.go:56
↓ 1 callers
Function
defaultFormatterOptions
()
config/config.go:105
← previous
next →
201–300 of 1,773, ranked by callers