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 22, 2022
1 parent b75a2a6 commit b58554c
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pkg/cov.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package pkg

func add(a, b int) int {
return a + b
}

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

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

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

func TestAdd1(t *testing.T) {
assert.Equal(t, 2, add1(1, 1))
}

0 comments on commit b58554c

Please sign in to comment.