File tree 4 files changed +30
-20
lines changed
4 files changed +30
-20
lines changed Original file line number Diff line number Diff line change 9
9
- main
10
10
- master
11
11
jobs :
12
- test :
13
- runs-on : ubuntu-latest
14
- steps :
15
- - uses : actions/checkout@v4
16
- - uses : actions/setup-go@v5
17
- with :
18
- go-version : stable
19
- - name : Install dependencies
20
- run : go mod tidy
21
- - name : Run tests with coverage
22
- run : go test ./... -coverprofile=./cover.out -covermode=atomic -coverpkg=./...
23
- - name : Check coverage
24
- uses : vladopajic/go-test-coverage@v2
25
- with :
26
- config : ./.testcoverage.yml
12
+ test :
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ - uses : actions/checkout@v4
16
+ - uses : actions/setup-go@v5
17
+ with :
18
+ go-version : stable
19
+ - name : Install dependencies
20
+ run : go mod tidy
21
+ - name : Run tests with coverage
22
+ run : go test ./... -coverprofile=./cover.out -covermode=atomic -coverpkg=./...
23
+ - name : Check coverage
24
+ uses : vladopajic/go-test-coverage@v2
25
+ with :
26
+ config : ./.testcoverage.yml
Original file line number Diff line number Diff line change 1
1
module github.com/redis-developer/go-redis-entraid
2
2
3
3
go 1.18
4
-
5
-
Original file line number Diff line number Diff line change 1
- package redis- entraid
1
+ package redis
2
+
3
+ const version = "0.0.1"
2
4
3
5
// Version is the current release version.
4
6
func Version () string {
5
- return "0.0.1"
7
+ return version
6
8
}
7
-
Original file line number Diff line number Diff line change
1
+ package redis
2
+
3
+ import (
4
+ "testing"
5
+ )
6
+
7
+ func TestVersion (t * testing.T ) {
8
+ if Version () != version {
9
+ t .Errorf ("Version() = %s; want %s" , Version (), version )
10
+ }
11
+ }
You can’t perform that action at this time.
0 commit comments