Skip to content

Commit

Permalink
Working on mockery mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
LandonTClipp committed Dec 29, 2024
1 parent ed244e4 commit f090448
Show file tree
Hide file tree
Showing 8 changed files with 584 additions and 21 deletions.
14 changes: 8 additions & 6 deletions .mockery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,14 @@ packages:
# unroll-variadic: False
# - mockname: RequesterVariadic
# unroll-variadic: True
#Expecter:
# configs:
# - mockname: ExpecterAndRolledVariadic
# unroll-variadic: False
# - mockname: Expecter
# unroll-variadic: True
Expecter:
configs:
- mockname: ExpecterAndRolledVariadic
template-data:
unroll-variadic: False
- mockname: Expecter
template-data:
unroll-variadic: True
#RequesterReturnElided:
#VariadicNoReturnInterface:
# config:
Expand Down
10 changes: 0 additions & 10 deletions cmd/mockery.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,16 +235,6 @@ func (r *RootApp) Run() error {
}
buildTags := strings.Split(r.Config.BuildTags, " ")

// TODO: Fix boilerplate
//var boilerplate string
//if r.Config.BoilerplateFile != "" {
// data, err := os.ReadFile(r.Config.BoilerplateFile)
// if err != nil {
// log.Fatal().Msgf("Failed to read boilerplate file %s: %v", r.Config.BoilerplateFile, err)
// }
// boilerplate = string(data)
//}

configuredPackages, err := r.Config.GetPackages(ctx)
if err != nil {
return fmt.Errorf("failed to get package from config: %w", err)
Expand Down
Loading

0 comments on commit f090448

Please sign in to comment.