Skip to content

Commit 33852a5

Browse files
committed
add mocekry
1 parent 8c85834 commit 33852a5

File tree

10 files changed

+1599
-11
lines changed

10 files changed

+1599
-11
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ jobs:
160160
# todo: reconsider to remove in favor of golangci-lint run.
161161
- name: fmt
162162
shell: bash
163-
run: make ci-fmt
163+
run: make ci-gen-fmt
164164

165165
- name: go mod
166166
shell: bash

http/.mockery.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
all: false
2+
dir: '{{.InterfaceDir}}'
3+
filename: mocks_test.go
4+
force-file-write: true
5+
formatter: goimports
6+
log-level: info
7+
structname: '{{.Mock}}{{.InterfaceName}}'
8+
pkgname: '{{.SrcPackageName}}'
9+
recursive: false
10+
require-template-schema-exists: true
11+
template: testify
12+
template-schema: '{{.Template}}.schema.json'
13+
packages:
14+
github.com/ifnotnil/x/http:
15+
config:
16+
all: true
17+
recursive: true

http/compress/mocks_test.go

Lines changed: 229 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)