Passed
Push — main ( f24a32...53c867 )
by Acho
03:11
created

api/pkg/handlers/handler_test.go   A

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A handlers.testClient 0 3 1
1
package handlers
2
3
import (
4
	"os"
5
6
	"github.com/carlmjohnson/requests"
7
	_ "github.com/joho/godotenv/autoload" // import USER_API_KEY from .env file
8
)
9
10
func testClient() *requests.Builder {
11
	return requests.URL("http://localhost:8000").
12
		Header("x-api-key", os.Getenv("USER_API_KEY"))
13
}
14