File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 15
15
- name : Install dependencies
16
16
run : go mod tidy
17
17
- name : Run tests with coverage
18
- run : go test -v -coverprofile="coverage.out" ./...
18
+ run : go test -coverprofile="coverage.out" $(go list ./... | grep -v /mocks | grep -v /facades | grep -v /contracts)
19
+ - name : Print coverage report
20
+ run : go tool cover -func=coverage.out
19
21
- name : Upload coverage report to Codecov
20
22
uses : codecov/codecov-action@v4
21
23
with :
Original file line number Diff line number Diff line change 1
1
package mock
2
2
3
3
import (
4
+ "context"
4
5
"fmt"
5
6
6
7
"github.com/goravel/framework/contracts/http"
7
8
"github.com/goravel/framework/contracts/log"
8
9
"github.com/goravel/framework/support/carbon"
9
10
)
10
11
12
+ var _ log.Log = & TestLog {}
13
+
11
14
type TestLog struct {
12
15
}
13
16
14
- func NewTestLog () log.Writer {
17
+ func NewTestLog () log.Log {
15
18
return & TestLog {}
16
19
}
17
20
21
+ func (r * TestLog ) WithContext (ctx context.Context ) log.Writer {
22
+ return r
23
+ }
24
+
18
25
func (r * TestLog ) Debug (args ... any ) {
19
26
fmt .Print (prefix ("debug" ))
20
27
fmt .Println (args ... )
You can’t perform that action at this time.
0 commit comments