pkg/scan/client/user_agent_internal_test.go   A
last analyzed

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 client.TestDecorateTransportUserAgent 0 4 1
1
package client
2
3
import (
4
	"testing"
5
6
	"github.com/stretchr/testify/assert"
7
)
8
9
func TestDecorateTransportUserAgent(t *testing.T) {
10
	transport, err := decorateTransportWithUserAgentDecorator(nil, "")
11
	assert.Nil(t, transport)
12
	assert.Error(t, err)
13
}
14