MCPcopy Create free account

hub / github.com/vektra/mockery / functions

Functions1,773 in github.com/vektra/mockery

↓ 1 callersFunctionexplicitConstraintType
(typeParam *types.Var)
internal/template_generator.go:278
↓ 1 callersMethodformat
(src []byte)
internal/template_generator.go:179
↓ 1 callersMethodgetTemplate
getTemplate returns the requested template and associated schema (if available).
internal/template_generator.go:320
↓ 1 callersFunctiongofmt
(src []byte)
internal/template_generator.go:506
↓ 1 callersFunctiongoimports
(src []byte, opts *config.GoImports)
internal/template_generator.go:488
↓ 1 callersFunctionhttpsGet
(ctx context.Context, url string)
internal/remote_template.go:15
↓ 1 callersFunctionintfSlice
(slice interface{})
internal/fixtures/expecter_test.go:182
↓ 1 callersFunctionisAutoGenerated
(pathName string)
internal/parse.go:162
↓ 1 callersFunctionisConstraint
(s *ast.TypeSpec, pkgs []*packages.Package)
internal/parse.go:180
↓ 1 callersMethodkoanfTagNames
()
config/config.go:652
↓ 1 callersMethodlargestTagSemver
(repo *git.Repository, major uint64)
tools/cmd/tag.go:88
↓ 1 callersFunctionmaybeExit
(err error)
tools/cmd/root.go:21
↓ 1 callersFunctionmergeStringMaps
mergreStringMaps merges two (possibly nested) maps.
config/config.go:252
↓ 1 callersMethodmethodData
(ctx context.Context, method *types.Func, ifaceConfig *config.Config)
internal/template_generator.go:212
↓ 1 callersFunctionnewMockargGetter
newMockargGetter creates a new instance of mockargGetter. It also registers a testing interface on the mock and a cleanup function to assert the mocks
internal/cmd/mocks_testify_cmd_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
mocks_testify_main_test.go:15
↓ 1 callersFunctionnewMockinterfaceB
newMockinterfaceB creates a new instance of mockinterfaceB. 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:201
↓ 1 callersFunctionnewTableWriter
(ctx context.Context)
internal/cmd/migrate.go:78
↓ 1 callersFunctionnewViper
()
tools/cmd/root.go:28
↓ 1 callersFunctionnillable
(typ types.Type)
template/var.go:49
↓ 1 callersMethodpopulateImports
(ctx context.Context, t types.Type)
template/method_scope.go:250
↓ 1 callersMethodsubPackages
(pkgPath string)
config/config.go:381
↓ 1 callersMethodtypeParams
(ctx context.Context, tparams *types.TypeParamList)
internal/template_generator.go:294
↓ 1 callersFunctionvalidateSchema
(ctx context.Context, data template.Data, schema *gojsonschema.Schema)
internal/template_generator.go:368
↓ 1 callersFunctionvarName
(vr *types.Var, suffix string)
template/var.go:63
↓ 1 callersFunctionvarNameForType
varNameForType generates a name for the variable using the type information. Examples: - string -> s - int -> n - chan int -> intCh - []a.MyType -> m
template/var.go:97
↓ 1 callersFunctionwriteFile
(path string, data []byte)
internal/cmd/mockery.go:181
MethodA
()
internal/fixtures/same_name_imports.go:12
MethodA
A provides a mock function for the type MockReplaceGeneric
internal/fixtures/mocks_testify_test_test.go:2079
MethodA
A provides a mock function for the type MockReplaceGenericSelf
internal/fixtures/mocks_testify_test_test.go:2251
MethodA
A is a helper method to define mock.On call
internal/fixtures/mocks_testify_test_test.go:2275
MethodA
A provides a mock function for the type MockImportsSameAsPackage
internal/fixtures/mocks_testify_test_test.go:2455
MethodA
A is a helper method to define mock.On call
internal/fixtures/mocks_testify_test_test.go:2477
MethodA
A provides a mock function for the type MockExample
internal/fixtures/mocks_testify_test_test.go:5109
MethodA
A is a helper method to define mock.On call
internal/fixtures/mocks_testify_test_test.go:5133
MethodA
()
internal/fixtures/imports_same_as_package.go:10
MethodA
(t1 TImport)
internal/fixtures/generic.go:45
MethodA
()
internal/fixtures/generic.go:51
MethodA
A calls AFunc.
internal/fixtures/mocks_matryer_test_test.go:1639
MethodA
A calls AFunc.
internal/fixtures/mocks_matryer_test_test.go:1802
MethodA
A calls AFunc.
internal/fixtures/mocks_matryer_test_test.go:2035
MethodA
A calls AFunc.
internal/fixtures/mocks_matryer_test_test.go:4656
MethodACalls
ACalls gets all the calls that were made to A. Check the length with: len(mockedReplaceGeneric.ACalls())
internal/fixtures/mocks_matryer_test_test.go:1661
MethodACalls
ACalls gets all the calls that were made to A. Check the length with: len(mockedReplaceGenericSelf.ACalls())
internal/fixtures/mocks_matryer_test_test.go:1821
MethodACalls
ACalls gets all the calls that were made to A. Check the length with: len(mockedImportsSameAsPackage.ACalls())
internal/fixtures/mocks_matryer_test_test.go:2054
MethodACalls
ACalls gets all the calls that were made to A. Check the length with: len(mockedExample.ACalls())
internal/fixtures/mocks_matryer_test_test.go:4675
MethodAcceptsContext
AcceptsContext returns whether or not the first argument of the method is a context.Context.
template/method.go:46
FunctionAdd
Add adds the given numbers.
template_funcs/functions.go:42
MethodAllocateName
AllocateName creates a new variable name in the lexical scope of the method. The name is guaranteed to not collide with any other existing names at th
template/method_scope.go:86
MethodArgCallListNoEllipsis
ArgCallListNoEllipsis is the same as ArgCallList, except the last parameter, if variadic, will not contain an ellipsis.
template/method.go:149
MethodArgCallListSlice
argCallListSlice is similar to ArgCallList, but it allows specification of a slice range to use for the parameter lists. Specifying an integer less th
template/method.go:157
MethodArgCallListSliceNoEllipsis
(start, end int)
template/method.go:161
MethodArgList
ArgList is the string representation of method parameters, ex: 's string, n int, foo bar.Baz'.
template/method.go:110
MethodArgListNoName
ArgListNoName is the same as ArgList except the argument names are not included.
template/method.go:115
MethodArgTypeList
ArgTypeList returns the argument types in a comma-separated string, ex: `string, int, bar.Baz`
template/method.go:121
MethodArgTypeListEllipsis
ArgTypeListEllipsis returns the argument types in a comma-separated string, ex: `string, int, bar.Baz`. If the last argument is variadic, it will cont
template/method.go:132
MethodB
(fixtureshttp string)
internal/fixtures/same_name_imports.go:13
MethodB
B provides a mock function for the type MockReplaceGeneric
internal/fixtures/mocks_testify_test_test.go:2132
MethodB
B provides a mock function for the type MockImportsSameAsPackage
internal/fixtures/mocks_testify_test_test.go:2499
MethodB
B is a helper method to define mock.On call
internal/fixtures/mocks_testify_test_test.go:2523
MethodB
B provides a mock function for the type MockExample
internal/fixtures/mocks_testify_test_test.go:5155
MethodB
B is a helper method to define mock.On call - fixtureshttp string
internal/fixtures/mocks_testify_test_test.go:5178
MethodB
()
internal/fixtures/imports_same_as_package.go:11
MethodB
()
internal/fixtures/generic.go:46
MethodB
B calls BFunc.
internal/fixtures/mocks_matryer_test_test.go:1681
MethodB
B calls BFunc.
internal/fixtures/mocks_matryer_test_test.go:2072
MethodB
B calls BFunc.
internal/fixtures/mocks_matryer_test_test.go:4693
MethodBCalls
BCalls gets all the calls that were made to B. Check the length with: len(mockedReplaceGeneric.BCalls())
internal/fixtures/mocks_matryer_test_test.go:1700
MethodBCalls
BCalls gets all the calls that were made to B. Check the length with: len(mockedImportsSameAsPackage.BCalls())
internal/fixtures/mocks_matryer_test_test.go:2091
MethodBCalls
BCalls gets all the calls that were made to B. Check the length with: len(mockedExample.BCalls())
internal/fixtures/mocks_matryer_test_test.go:4715
MethodBar
()
foo.go:6
MethodBar
Bar provides a mock function for the type mockfoo
mocks_testify_main_test.go:41
MethodBar
Bar is a helper method to define mock.On call
mocks_testify_main_test.go:63
MethodBar
Bar is a helper method to define mock.On call - s string
github.com/LandonTClipp/example-go-repo/mocks_testify_foo_test.go:64
MethodBar
Bar provides a mock function for the type MockFooer
internal/fixtures/mocks_testify_test_test.go:123
MethodBar
Bar is a helper method to define mock.On call - f func([]int)
internal/fixtures/mocks_testify_test_test.go:135
MethodBar
(f func([]int))
internal/fixtures/argument_is_func_type.go:5
MethodBar
Bar calls BarFunc.
internal/fixtures/mocks_matryer_test_test.go:157
MethodBar
()
internal/fixtures/multi_template/interface.go:4
MethodBar
Bar is a helper method to define mock.On call
internal/fixtures/multi_template/mocks_testify_multitemplate_test.go:63
MethodBar
Bar provides a mock function for the type mockfoo
internal/fixtures/unexported/mocks_testify_unexported_test.go:41
MethodBar
Bar is a helper method to define mock.On call
internal/fixtures/unexported/mocks_testify_unexported_test.go:63
MethodBar
Bar provides a mock function for the type MockFoo
internal/fixtures/recursive_generation_with_subpkg_exclude/mocks.go:41
MethodBar
Bar is a helper method to define mock.On call
internal/fixtures/recursive_generation_with_subpkg_exclude/mocks.go:63
MethodBar
()
internal/fixtures/recursive_generation_with_subpkg_exclude/foo.go:4
MethodBar
Bar provides a mock function for the type MockFoo
internal/fixtures/recursive_generation_with_subpkg_exclude/subpkg1/mocks.go:41
MethodBar
Bar is a helper method to define mock.On call
internal/fixtures/recursive_generation_with_subpkg_exclude/subpkg1/mocks.go:63
MethodBar
()
internal/fixtures/recursive_generation_with_subpkg_exclude/subpkg1/foo.go:4
MethodBar
()
internal/fixtures/recursive_generation_with_subpkg_exclude/subpkg2/foo.go:4
MethodBar
()
internal/fixtures/inpackage/interface.go:6
MethodBar
Bar provides a mock function for the type MockFoo
internal/fixtures/inpackage/subpkg/mocks_testify_inpackage_test.go:43
MethodBar
Bar is a helper method to define mock.On call
internal/fixtures/inpackage/subpkg/mocks_testify_inpackage_test.go:65
MethodBar
Bar is a helper method to define mock.On call
internal/fixtures/include_auto_generated/mocks_testify_includeautogenerated_test.go:63
MethodBar
()
internal/fixtures/include_auto_generated/interface.go:6
MethodBar
Bar is a helper method to define mock.On call
internal/fixtures/interface_dir_relative/mocks/fixtures/interface_dir_relative/mocks.go:63
MethodBar
Bar provides a mock function for the type MockFoo
internal/fixtures/interface_dir_relative/internal/fixtures/interface_dir_relative/mocks.go:41
MethodBar
Bar is a helper method to define mock.On call
internal/fixtures/interface_dir_relative/internal/fixtures/interface_dir_relative/mocks.go:63
MethodBar
()
internal/fixtures/output_dir/interface.go:8
MethodBar
Bar calls BarFunc.
internal/fixtures/output_dir/output_dir/mocks_matryer_output_dir_test.go:48
MethodBarCalls
BarCalls gets all the calls that were made to Bar. Check the length with: len(mockedFooer.BarCalls())
internal/fixtures/mocks_matryer_test_test.go:176
← previousnext →301–400 of 1,773, ranked by callers