vole
Clone
Read only, no credentials:
https://rodent.software/vole.git
Write over SSH with a registered key:
git clone ssh://git@rodent.software:2222/vole.git
A free and open-source forge that lives in your Git repo.
refactor
c5902451905acdaa478f8476844ccd4a510d9ca9 · Keenan Nemetz · 17d ago · parent ec2aba4b
internal/frontmatter/frontmatter_test.go → metadata/frontmatter_test.go +4−4
| @@ -1,4 +1,4 @@ | |||
| 1 | package frontmatter | ||
| 1 | package metadata | ||
| 2 | 2 | ||
| 3 | 3 | import ( | |
| 4 | 4 | "strings" | |
| @@ -118,7 +118,7 @@ func TestText(t *testing.T) { | |||
| 118 | 118 | ||
| 119 | 119 | func TestDoc(t *testing.T) { | |
| 120 | 120 | t.Parallel() | |
| 121 | d := New() | ||
| 121 | d := NewDoc() | ||
| 122 | 122 | d.Text("title", `fix "quoted" #12`) | |
| 123 | 123 | d.Word("state", "open") | |
| 124 | 124 | d.Word("base", "null") | |
| @@ -141,7 +141,7 @@ func TestDoc(t *testing.T) { | |||
| 141 | 141 | } | |
| 142 | 142 | ||
| 143 | 143 | // One label per line is the point: adding one is an added line. | |
| 144 | grown := New() | ||
| 144 | grown := NewDoc() | ||
| 145 | 145 | grown.List("labels", []string{"bug", "needs-repro"}) | |
| 146 | 146 | grownRaw, err := grown.Bytes("") | |
| 147 | 147 | if err != nil { | |
| @@ -155,7 +155,7 @@ func TestDoc(t *testing.T) { | |||
| 155 | 155 | func TestDocRefusesControlCharacters(t *testing.T) { | |
| 156 | 156 | t.Parallel() | |
| 157 | 157 | for _, value := range []string{"two\nlines", "tab\there", "del\x7f"} { | |
| 158 | d := New() | ||
| 158 | d := NewDoc() | ||
| 159 | 159 | d.Text("title", value) | |
| 160 | 160 | if _, err := d.Bytes(""); err == nil { | |
| 161 | 161 | t.Fatalf("%q was accepted", value) | |