GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Push — master ( 378143...7be145 )
by Victor Hugo
01:18 queued 13s
created

idempotency.TestGenerateNonDefault   A

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 idempotency
2
3
import (
4
	"testing"
5
6
	"github.com/stretchr/testify/assert"
7
)
8
9
func TestNopGenerator(t *testing.T) {
10
	assert.Implements(t, new(KeyGenerator), NewNopGenerator("dummy"))
11
}
12
13
func TestGenerateDefault(t *testing.T) {
14
	g := NewNopGenerator("")
15
16
	assert.Equal(t, TestKeyExpected, g.Generate())
17
}
18
19
func TestGenerateNonDefault(t *testing.T) {
20
	g := NewNopGenerator("testing")
21
22
	assert.NotEqual(t, TestKeyExpected, g.Generate())
23
}
24