main.TestMain   A
last analyzed

Complexity

Conditions 1

Size

Total Lines 4
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
dl 0
loc 4
rs 10
c 0
b 0
f 0
nop 1
1
package main
2
3
import (
4
	"os"
5
	"testing"
6
7
	"github.com/rfinochi/golang-workshop-todo/pkg/common"
8
)
9
10
func TestMain(t *testing.T) {
11
	os.Setenv(common.RepositoryEnvVarName, common.RepositoryMemory)
12
13
	go main()
14
}
15