mirror of
https://github.com/apricote/releaser-pleaser.git
synced 2026-01-13 21:21:03 +00:00
Increase the number of code blocks backticks to 4 for the release note prefix and suffix, to allow users to embed their own code blocks using only 3 backticks.
19 lines
265 B
Go
19 lines
265 B
Go
package testdata
|
|
|
|
import (
|
|
"embed"
|
|
"testing"
|
|
)
|
|
|
|
//go:embed *.txt
|
|
var testdata embed.FS
|
|
|
|
func MustReadFileString(t *testing.T, name string) string {
|
|
t.Helper()
|
|
|
|
content, err := testdata.ReadFile(name)
|
|
if err != nil {
|
|
t.Fatal(err)
|
|
}
|
|
return string(content)
|
|
}
|