diff options
| author | Shulhan <ms@kilabit.info> | 2025-02-07 23:43:09 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2025-02-07 23:43:20 +0700 |
| commit | 49e7143dbad57a48115fdd299b42ab8e66f6d7cc (patch) | |
| tree | 20e4cac969070b79e7849f8f3ca813eb64233226 /http_server_test.go | |
| parent | 30971348166edbe386beb98a7222d70590cea6fc (diff) | |
| download | awwan-49e7143dbad57a48115fdd299b42ab8e66f6d7cc.tar.xz | |
internal/cmd/gocheck: internal linters
The fieldalignment and shadow is a linter from golang.org/x/tools.
This program actually have an API that can be used.
The pakakeh.go/lib/goanalysis wrap those APIs into a single function
call that can be run inside a main.
This minimize and simplified our tools dependencies.
Diffstat (limited to 'http_server_test.go')
| -rw-r--r-- | http_server_test.go | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/http_server_test.go b/http_server_test.go index 2dcd94f..8617c65 100644 --- a/http_server_test.go +++ b/http_server_test.go @@ -55,10 +55,7 @@ func TestHttpServer_Decrypt(t *testing.T) { } var endpointDecrypt = &libhttp.Endpoint{ - Method: libhttp.RequestMethodPost, - Path: pathAwwanAPIDecrypt, - RequestType: libhttp.RequestTypeJSON, - ResponseType: libhttp.ResponseTypeJSON, + Path: pathAwwanAPIDecrypt, } var cases = []testCase{{ @@ -142,10 +139,7 @@ func TestHttpServer_Encrypt(t *testing.T) { } var endpointEncrypt = &libhttp.Endpoint{ - Method: libhttp.RequestMethodPost, - Path: pathAwwanAPIEncrypt, - RequestType: libhttp.RequestTypeJSON, - ResponseType: libhttp.ResponseTypeJSON, + Path: pathAwwanAPIEncrypt, } var cases = []testCase{{ |
