cmd/web/main_test.go   A
last analyzed

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 8
dl 0
loc 13
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A main.TestMain 0 4 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