Passed
Push — master ( b9ce7a...fa5039 )
by Stefano
02:17
created

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