remove log() func from gogs times and switch to proper logging
Showing the changes to services/gitdiff/gitdiff_test.go (1 of 19 files). Show all
Unified · Split
| @@ -13,7 +13,6 @@ import ( · 12 unmodified lines | |||
| 13 | "testing" | 13 | "testing" |
| 14 | 14 | ||
| 15 | "code.gitea.io/gitea/models" | 15 | "code.gitea.io/gitea/models" |
| 16 | "code.gitea.io/gitea/modules/git" | ||
| 17 | "code.gitea.io/gitea/modules/highlight" | 16 | "code.gitea.io/gitea/modules/highlight" |
| 18 | "code.gitea.io/gitea/modules/setting" | 17 | "code.gitea.io/gitea/modules/setting" |
| 19 | jsoniter "github.com/json-iterator/go" | 18 | jsoniter "github.com/json-iterator/go" |
| @@ -514,7 +513,6 @@ func TestDiffLine_GetCommentSide(t *testing.T) { · 494 unmodified lines | |||
| 514 | } | 513 | } |
| 515 | 514 | ||
| 516 | func TestGetDiffRangeWithWhitespaceBehavior(t *testing.T) { | 515 | func TestGetDiffRangeWithWhitespaceBehavior(t *testing.T) { |
| 517 | git.Debug = true | ||
| 518 | for _, behavior := range []string{"-w", "--ignore-space-at-eol", "-b", ""} { | 516 | for _, behavior := range []string{"-w", "--ignore-space-at-eol", "-b", ""} { |
| 519 | diffs, err := GetDiffRangeWithWhitespaceBehavior("./testdata/academic-module", "559c156f8e0178b71cb44355428f24001b08fc68", "bd7063cc7c04689c4d082183d32a604ed27a24f9", | 517 | diffs, err := GetDiffRangeWithWhitespaceBehavior("./testdata/academic-module", "559c156f8e0178b71cb44355428f24001b08fc68", "bd7063cc7c04689c4d082183d32a604ed27a24f9", |
| 520 | setting.Git.MaxGitDiffLines, setting.Git.MaxGitDiffLines, setting.Git.MaxGitDiffFiles, behavior) | 518 | setting.Git.MaxGitDiffLines, setting.Git.MaxGitDiffLines, setting.Git.MaxGitDiffFiles, behavior) |