From 27e70020b23c38a62de8a362aa87ab0f93a818da Mon Sep 17 00:00:00 2001 From: Charles Iliya Krempeaux Date: Wed, 14 Feb 2024 16:37:13 -0800 Subject: [PATCH] initial commits --- appendframeposturl_test.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/appendframeposturl_test.go b/appendframeposturl_test.go index f28edb5..91f2c6e 100644 --- a/appendframeposturl_test.go +++ b/appendframeposturl_test.go @@ -7,39 +7,39 @@ import ( func TestAppendFramePostURL(t *testing.T) { tests := []struct{ - Version string + URL string Expected string }{ { - Version: "", + URL: "", Expected: ``+"\n", }, { - Version: "something", + URL: "something", Expected: ``+"\n", }, { - Version: "Hello world! 🙂", + URL: "Hello world! 🙂", Expected: ``+"\n", }, { - Version: "https://example.com/path/to/post/to.php", + URL: "https://example.com/path/to/post/to.php", Expected: ``+"\n", }, { - Version: "x-proto:apple/banana/cherry", + URL: "x-proto:apple/banana/cherry", Expected: ``+"\n", }, } @@ -50,7 +50,7 @@ func TestAppendFramePostURL(t *testing.T) { var buffer [256]byte var p []byte = buffer[0:0] - p = AppendFramePostURL(p, test.Version) + p = AppendFramePostURL(p, test.URL) expected := test.Expected actual := string(p) @@ -61,7 +61,7 @@ func TestAppendFramePostURL(t *testing.T) { t.Logf("ACTUAL: %s", actual) t.Logf("EXPECTED: %q", expected) t.Logf("ACTUAL: %q", actual) - t.Logf("LABEL: %q", test.Version) + t.Logf("URL: %q", test.URL) continue } } @@ -75,7 +75,7 @@ func TestAppendFramePostURL(t *testing.T) { p = append(p, top...) - p = AppendFramePostURL(p, test.Version) + p = AppendFramePostURL(p, test.URL) p = append(p, bottom...) @@ -88,7 +88,7 @@ func TestAppendFramePostURL(t *testing.T) { t.Logf("ACTUAL: %s", actual) t.Logf("EXPECTED: %q", expected) t.Logf("ACTUAL: %q", actual) - t.Logf("LABEL: %q", test.Version) + t.Logf("URL: %q", test.URL) continue } }