Skip to content

Commit

Permalink
Update test cov
Browse files Browse the repository at this point in the history
Signed-off-by: Wenqi Qiu <[email protected]>
  • Loading branch information
wenqiq committed Aug 24, 2022
1 parent 3d5c617 commit fc01966
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion codecov.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
codecov:
branch: main
require_ci_to_pass: no
require_ci_to_pass: true

comment:
layout: "reach,diff,flags,tree"
Expand Down
5 changes: 5 additions & 0 deletions pkg/cov.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package pkg

func add(a, b int) int {
return a + b
}
10 changes: 10 additions & 0 deletions pkg/cov_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package pkg

import (
"github.com/stretchr/testify/assert"
"testing"
)

func TestAdd(t *testing.T) {
assert.Equal(t, 2, add(1, 1))
}

0 comments on commit fc01966

Please sign in to comment.