Passed
Push — main ( 6599d2...81bd35 )
by Acho
01:34
created

e2e/user_service_test.go   A

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A e2e.TestUsersService_Me 0 9 1
1
package e2e
2
3
import (
4
	"context"
5
	"net/http"
6
	"testing"
7
8
	"github.com/stretchr/testify/assert"
9
)
10
11
func TestUsersService_Me(t *testing.T) {
12
	// Setup
13
	t.Parallel()
14
15
	user, response, err := client.Users.Me(context.Background())
16
17
	assert.Nil(t, err)
18
	assert.Equal(t, http.StatusOK, response.HTTPResponse.StatusCode)
19
	assert.NotNil(t, user)
20
}
21