diff options
| author | Shulhan <ms@kilabit.info> | 2024-02-05 05:26:56 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2024-02-07 00:33:19 +0700 |
| commit | a390baed9f16c61c9c431691be7bb10151fcde10 (patch) | |
| tree | 3d026a4713acd1dfe1353b7ff39b71ec474da4de /http_server_test.go | |
| parent | f2cfe0de0eeec8bc7abf9d754b9e89681743ecff (diff) | |
| download | gorankusu-a390baed9f16c61c9c431691be7bb10151fcde10.tar.xz | |
all: rename the project to gorankusu
The original idea of "trunks" is because the core library that we
use for load testing is named "vegeta" (from Dragon Ball) [1][2], and
Vegeta has a son named Trunks.
In English, trunks also have multiple meanings.
In order to have a unique name, we rename the project to "gorankusu",
which is a combination of "go" (the main programming language
that built the application) and "torankusu" the Hepburn of "Trunks".
[1]: https://github.com/tsenart/vegeta/
[2]: https://en.wikipedia.org/wiki/Vegeta
Implements: https://todo.sr.ht/~shulhan/gorankusu/2
Diffstat (limited to 'http_server_test.go')
| -rw-r--r-- | http_server_test.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/http_server_test.go b/http_server_test.go index a1e75b5..d4f8555 100644 --- a/http_server_test.go +++ b/http_server_test.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: 2024 M. Shulhan <ms@kilabit.info> // SPDX-License-Identifier: GPL-3.0-or-later -package trunks +package gorankusu import ( "bytes" @@ -20,7 +20,7 @@ type httpRequestParams struct { body []byte } -func TestTrunksAPITargetRunHTTP_formInputFile(t *testing.T) { +func TestGorankusuAPITargetRunHTTP_formInputFile(t *testing.T) { type testCase struct { tag string } @@ -52,7 +52,7 @@ func TestTrunksAPITargetRunHTTP_formInputFile(t *testing.T) { body: tdata.Input[c.tag+`:http_request_body`], } - _, runResp = dummyTrunksServe(t, reqparams) + _, runResp = dummyGorankusuServe(t, reqparams) tag = c.tag + `:RunResponse.DumpResponse` exp = string(tdata.Output[tag]) @@ -60,7 +60,7 @@ func TestTrunksAPITargetRunHTTP_formInputFile(t *testing.T) { } } -func dummyTrunksServe(t *testing.T, reqparams httpRequestParams) (rawResp []byte, runResp RunResponse) { +func dummyGorankusuServe(t *testing.T, reqparams httpRequestParams) (rawResp []byte, runResp RunResponse) { var body bytes.Buffer var recorder = httptest.NewRecorder() @@ -71,7 +71,7 @@ func dummyTrunksServe(t *testing.T, reqparams httpRequestParams) (rawResp []byte reqparams.path, &body) - dummyTrunks.Httpd.ServeHTTP(recorder, httpreq) + dummyGorankusu.Httpd.ServeHTTP(recorder, httpreq) var ( httpres = recorder.Result() |
