mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-07 07:47:02 +02:00
Add API for Variables (#29520)
close #27801 --------- Co-authored-by: silverwind <me@silverwind.io>
This commit is contained in:
1 parent
6103623596
commit
62b073e6f3
16 files changed
+2102
-74
No files matched your search
@@ -235,3 +235,8 @@ func TestToPointer(t *testing.T) {
|
||||
val123 := 123
|
||||
assert.False(t, &val123 == ToPointer(val123))
|
||||
}
|
||||
|
||||
func TestReserveLineBreakForTextarea(t *testing.T) {
|
||||
assert.Equal(t, ReserveLineBreakForTextarea("test\r\ndata"), "test\ndata")
|
||||
assert.Equal(t, ReserveLineBreakForTextarea("test\r\ndata\r\n"), "test\ndata\n")
|
||||
}
|
||||
Reference in new issue
Block a user