MCPcopy Create free account

hub / github.com/vektra/mockery / functions

Functions1,773 in github.com/vektra/mockery

↓ 1 callersFunctionGetRootApp
(ctx context.Context, flags *pflag.FlagSet)
internal/cmd/mockery.go:83
↓ 1 callersMethodImports
()
template/data.go:22
↓ 1 callersMethodLookupInterface
LookupInterface returns the underlying interface definition of the given interface name.
template/registry.go:58
↓ 1 callersMethodManyArgsReturns
(str string, i int)
internal/fixtures/expecter.go:6
↓ 1 callersMethodMethod1
()
internal/fixtures/iface_new_type/interface.go:6
↓ 1 callersMethodMethod1
Method1 provides a mock function for the type MockInterface1
internal/fixtures/iface_new_type/mocks_testify_iface_new_type_test.go:41
↓ 1 callersMethodMethodArg
MethodArg is the representation of the parameter in the function signature, ex: 'name a.Type'.
template/param.go:35
↓ 1 callersMethodMethodArgNoName
MethodArgNoName is the same as MethodArg except the argument name is not included.
template/param.go:40
↓ 1 callersMethodNameExists
NameExists returns whether or not the name is currently visible in the scope.
template/method_scope.go:217
↓ 1 callersFunctionNewComments
(typeSpec *ast.TypeSpec, genDecl *ast.GenDecl)
template/comments.go:62
↓ 1 callersFunctionNewData
( pkgName string, srcPkgQualifier string, imports Packages, interfaces Interfaces, templateData TemplateD
template/data.go:26
↓ 1 callersFunctionNewInitCmd
()
internal/cmd/init.go:18
↓ 1 callersFunctionNewInterface
( name string, structName string, typeParams []TypeParam, methods []Method, templateData TemplateData, c
template/interface.go:15
↓ 1 callersFunctionNewInterfaceCollection
( srcPkgPath string, outFilePath string, srcPkg *packages.Package, outPkgName string, template string, t
internal/cmd/mockery.go:118
↓ 1 callersFunctionNewMethodScope
(r *Registry)
template/method_scope.go:32
↓ 1 callersFunctionNewMigrateCmd
()
internal/cmd/migrate.go:21
↓ 1 callersFunctionNewMockAliasToInterface3
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 callersFunctionNewMockEmptyReturn
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 callersFunctionNewMockFoo
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 callersFunctionNewMockFoo
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 callersFunctionNewMockIndexListExpr
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 callersFunctionNewMockInterface1
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 callersFunctionNewMockIssue766
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 callersFunctionNewMockNilRun
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 callersFunctionNewMockPanicOnNoReturnValue
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 callersFunctionNewMockStringer
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 callersFunctionNewMockTestifyFoo
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 callersFunctionNewMockVariadicReturnFunc
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 callersFunctionNewNodeVisitor
(ctx context.Context)
internal/node_visitor.go:22
↓ 1 callersFunctionNewRemoteTemplate
(templateURL string, schemaURL string)
internal/remote_template.go:68
↓ 1 callersFunctionNewRootCmd
()
internal/cmd/mockery.go:26
↓ 1 callersFunctionNewShowConfigCmd
()
internal/cmd/showconfig.go:15
↓ 1 callersFunctionNewTagger
(v *viper.Viper)
tools/cmd/tag.go:143
↓ 1 callersFunctionNewVersionCmd
()
internal/cmd/version.go:10
↓ 1 callersMethodNoArg
()
internal/fixtures/expecter.go:4
↓ 1 callersMethodNoArgs
NoArgs calls NoArgsFunc.
internal/fixtures/empty_return/mocks_matryer_empty_return_test.go:60
↓ 1 callersMethodNoReturn
(str string)
internal/fixtures/expecter.go:5
↓ 1 callersMethodOptions
()
config/config.go:605
↓ 1 callersMethodParsePackages
(ctx context.Context, packageNames []string)
internal/parse.go:52
↓ 1 callersMethodParseTemplates
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 callersMethodRender
()
internal/cmd/migrate.go:126
↓ 1 callersMethodResolveVariableNameCollisions
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 callersMethodReturn
(s string)
internal/fixtures/unexported/mocks_testify_unexported_test.go:74
↓ 1 callersMethodReturn
()
internal/fixtures/directive_comments/server_with_different_file.go:78
↓ 1 callersMethodReturn
(s string)
internal/fixtures/recursive_generation/mocks_testify_recursive_generation_test.go:74
↓ 1 callersMethodReturn
(s string)
internal/fixtures/recursive_generation/subpkg1/mocks_testify_subpkg1_test.go:74
↓ 1 callersMethodReturn
(s string)
internal/fixtures/recursive_generation/subpkg2/mocks_testify_subpkg2_test.go:74
↓ 1 callersMethodReturn
(s string)
internal/fixtures/recursive_generation_with_subpkg_exclude/mocks.go:74
↓ 1 callersMethodReturn
(s string)
internal/fixtures/recursive_generation_with_subpkg_exclude/subpkg1/mocks.go:74
↓ 1 callersMethodReturn
(s string)
internal/fixtures/buildtag/comment/mocks_testify_comment_test.go:96
↓ 1 callersMethodReturn
(s string)
internal/fixtures/auto_generated_skip/mocks_testify_autogeneratedskip_test.go:74
↓ 1 callersMethodReturn
(internalStringType InternalStringType)
internal/fixtures/inpackage/subpkg/mocks_testify_inpackage_test.go:76
↓ 1 callersMethodReturn
(s string)
internal/fixtures/interface_dir_relative/internal/fixtures/interface_dir_relative/mocks.go:74
↓ 1 callersMethodReturn
()
internal/fixtures/empty_return/mocks_testify_empty_return_test.go:63
↓ 1 callersMethodRun
(run func(f func([]int)))
internal/fixtures/mocks_testify_test_test.go:139
↓ 1 callersMethodRun
(run func(str string))
internal/fixtures/mocks_testify_test_test.go:973
↓ 1 callersMethodRun
(run func(str string))
internal/fixtures/mocks_testify_test_test.go:1284
↓ 1 callersMethodRun
(run func(j int, is ...interface{}))
internal/fixtures/mocks_testify_test_test.go:1497
↓ 1 callersMethodRun
(run func(c C))
internal/fixtures/mocks_testify_test_test.go:2561
↓ 1 callersMethodRun
(run func(arg1 ...map[string]interface{}))
internal/fixtures/mocks_testify_test_test.go:2966
↓ 1 callersMethodRun
(run func())
internal/fixtures/mocks_testify_test_test.go:3034
↓ 1 callersMethodRun
(run func(obj Sibling))
internal/fixtures/mocks_testify_test_test.go:3095
↓ 1 callersMethodRun
(run func(nilRun NilRun))
internal/fixtures/mocks_testify_test_test.go:3162
↓ 1 callersMethodRun
(run func())
internal/fixtures/mocks_testify_test_test.go:3535
↓ 1 callersMethodRun
(run func(test1 string))
internal/fixtures/mocks_testify_test_test.go:3756
↓ 1 callersMethodRun
(run func())
internal/fixtures/mocks_testify_test_test.go:4492
↓ 1 callersMethodRun
(run func(ptr *unsafe.Pointer))
internal/fixtures/mocks_testify_test_test.go:5496
↓ 1 callersMethodRun
(run func(one string, two ...string))
internal/fixtures/mocks_testify_test_test.go:5945
↓ 1 callersMethodRun
(run func(statusCode int))
internal/fixtures/mocks_net_http_test.go:165
↓ 1 callersMethodRun
(run func(path string, handler http.Handler))
internal/fixtures/directive_comments/server_with_different_file.go:133
↓ 1 callersMethodRun
(run func(path string, handler http.Handler))
internal/fixtures/directive_comments/mocks_testify_directive_comments_test.go:147
↓ 1 callersMethodRun
(run func())
internal/fixtures/directive_comments/mocks_testify_directive_comments_test.go:218
↓ 1 callersMethodRun
(run func())
internal/fixtures/iface_typed_param/mocks_testify_iface_typed_param_test.go:71
↓ 1 callersMethodRun
(run func())
internal/fixtures/iface_new_type/mocks_testify_iface_new_type_test.go:116
↓ 1 callersMethodRun
(run func())
internal/fixtures/iface_new_type/mocks_testify_iface_new_type_test.go:176
↓ 1 callersMethodRun
(run func(f rt2.RType2))
internal/fixtures/example_project/replace_type/mocks_testify_replace_type_test.go:99
↓ 1 callersMethodRun
(run func(f rt2.RType2))
internal/fixtures/example_project/replace_type/mocks_testify_replace_type_test.go:166
↓ 1 callersMethodRun
(run func(f rt2.RType2))
internal/fixtures/example_project/replace_type/mocks_testify_replace_type_test.go:206
↓ 1 callersMethodRun
(run func(bar Bar))
internal/fixtures/replace_type_pointers/mocks_testify_replace_type_pointers_test.go:68
↓ 1 callersMethodRun
(run func(v a))
internal/fixtures/iface_typed_param_lowercase/mocks_testify_iface_typed_param_lowercase_test.go:70
↓ 1 callersMethodRun
(run func(a int, b string))
internal/fixtures/empty_return/mocks_testify_empty_return_test.go:91
↓ 1 callersMethodSampleMethod
SampleMethod provides a mock function for the type MockVariadicReturnFunc
internal/fixtures/mocks_testify_test_test.go:5631
↓ 1 callersMethodSampleMethod
(str string)
internal/fixtures/variadic_return_func.go:4
↓ 1 callersMethodSchema
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 callersMethodShouldExcludeSubpkg
(pkgPath string)
config/config.go:670
↓ 1 callersMethodShouldGenerateInterface
( ctx context.Context, interfaceName string, ifaceConfig Config, hasDirectiveComment bool, )
config/config.go:500
↓ 1 callersMethodSignature
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 callersMethodSrcPkg
()
template/registry.go:47
↓ 1 callersMethodSrcPkgName
SrcPkgName returns the name of the source package.
template/registry.go:52
↓ 1 callersMethodTag
()
tools/cmd/tag.go:162
↓ 1 callersMethodTemplate
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 callersMethodUnwrap
()
internal/stackerr/stackerr.go:31
↓ 1 callersFunctionWarn
(ctx context.Context, prefix string, message string, fields map[string]any)
internal/logging/logging.go:98
↓ 1 callersMethodWrite
Write provides a mock function for the type MockWriter
internal/fixtures/mocks_io_test.go:130
↓ 1 callersMethodWriteString
WriteString provides a mock function for the type MockStringWriter
internal/fixtures/mocks_io_test.go:2555
↓ 1 callersFunctionbasicTypeVarName
(b *types.Basic)
template/var.go:149
↓ 1 callersFunctioncapitalise
(s string)
template/var.go:167
↓ 1 callersFunctioncheckDeprecatedTemplateVariables
( ctx context.Context, conf *V2Config, tbl *tableWriter, )
internal/cmd/migrate.go:229
↓ 1 callersMethodcreateTag
(repo *git.Repository, version string)
tools/cmd/tag.go:56
↓ 1 callersFunctiondefaultFormatterOptions
()
config/config.go:105
← previousnext →201–300 of 1,773, ranked by callers