-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR only does "renaming": * `Route` should be `Router` (and chi router is also called "router") * `Params` should be `PathParam` (to distingush it from URL query param, and to match `FormString`) * Use lower case for private functions to avoid exposing or abusing
- Loading branch information
1 parent
17baf1a
commit 43c7a2e
Showing
177 changed files
with
837 additions
and
837 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -103,7 +103,7 @@ func TestRenderCommitBody(t *testing.T) { | |
} | ||
for _, tt := range tests { | ||
t.Run(tt.name, func(t *testing.T) { | ||
assert.Equalf(t, tt.want, RenderCommitBody(tt.args.ctx, tt.args.msg, tt.args.metas), "RenderCommitBody(%v, %v, %v)", tt.args.ctx, tt.args.msg, tt.args.metas) | ||
assert.Equalf(t, tt.want, renderCommitBody(tt.args.ctx, tt.args.msg, tt.args.metas), "RenderCommitBody(%v, %v, %v)", tt.args.ctx, tt.args.msg, tt.args.metas) | ||
}) | ||
} | ||
|
||
|
@@ -127,7 +127,7 @@ com 88fc37a3c0a4dda553bdcfc80c178a58247f42fb mit | |
<a href="/user13/repo11/issues/123" class="ref-issue">#123</a> | ||
space` | ||
|
||
assert.EqualValues(t, expected, RenderCommitBody(context.Background(), testInput(), testMetas)) | ||
assert.EqualValues(t, expected, renderCommitBody(context.Background(), testInput(), testMetas)) | ||
} | ||
|
||
func TestRenderCommitMessage(t *testing.T) { | ||
|
@@ -139,7 +139,7 @@ func TestRenderCommitMessage(t *testing.T) { | |
func TestRenderCommitMessageLinkSubject(t *testing.T) { | ||
expected := `<a href="https://example.com/link" class="default-link muted">space </a><a href="/mention-user" class="mention">@mention-user</a>` | ||
|
||
assert.EqualValues(t, expected, RenderCommitMessageLinkSubject(context.Background(), testInput(), "https://example.com/link", testMetas)) | ||
assert.EqualValues(t, expected, renderCommitMessageLinkSubject(context.Background(), testInput(), "https://example.com/link", testMetas)) | ||
} | ||
|
||
func TestRenderIssueTitle(t *testing.T) { | ||
|
@@ -165,7 +165,7 @@ [email protected] | |
space<SPACE><SPACE> | ||
` | ||
expected = strings.ReplaceAll(expected, "<SPACE>", " ") | ||
assert.EqualValues(t, expected, RenderIssueTitle(context.Background(), testInput(), testMetas)) | ||
assert.EqualValues(t, expected, renderIssueTitle(context.Background(), testInput(), testMetas)) | ||
} | ||
|
||
func TestRenderMarkdownToHtml(t *testing.T) { | ||
|
Oops, something went wrong.