Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
go-gitlab
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
go-gitlab
Commits
8d5035f4
Unverified
Commit
8d5035f4
authored
Mar 21, 2019
by
David Kuridža
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add tests for group and project access requests
parent
3a40efb5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
access_requests_test.go
access_requests_test.go
+0
-0
gitlab_test.go
gitlab_test.go
+5
-0
No files found.
access_requests_test.go
0 → 100644
View file @
8d5035f4
This diff is collapsed.
Click to expand it.
gitlab_test.go
View file @
8d5035f4
...
...
@@ -4,6 +4,7 @@ import (
"bytes"
"context"
"encoding/json"
"errors"
"io/ioutil"
"net/http"
"net/http/httptest"
...
...
@@ -58,6 +59,10 @@ func testBody(t *testing.T, r *http.Request, want string) {
}
}
func
errorOption
(
*
http
.
Request
)
error
{
return
errors
.
New
(
"OptionFunc returns an error"
)
}
func
TestNewClient
(
t
*
testing
.
T
)
{
c
:=
NewClient
(
nil
,
""
)
expectedBaseURL
:=
defaultBaseURL
+
apiVersionPath
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment