test(model): clarify where NewFolder paths come from

Signed-off-by: junkerderprovinz <jdp@braethoria.com>
This commit is contained in:
junkerderprovinz 2026-10-09 20:53:47 +02:00
parent 5d71b6e0d5
commit 1d15beb2eb
2 changed files with 2 additions and 2 deletions

View File

@ -77,7 +77,7 @@ var _ = Describe("Folder", func() {
Describe("NewFolder", func() {
It("should create a new SubFolder with the correct attributes", func() {
// The scanner walks an fs.FS, so folder paths always use forward slashes
// The scanner passes fs.FS paths here, which use forward slashes on every OS.
folderPath := "rock/metal"
folder := model.NewFolder(lib, folderPath)

View File

@ -484,7 +484,7 @@ var _ = Describe("MediaFiles", func() {
false,
"#EXTM3U\n#PLAYLIST:Multi Track\n#EXTINF:120,Artist A - Song One\na/song1.mp3\n#EXTINF:241,Artist B - Song Two\nb/song2.mp3\n#EXTINF:90,Artist with Ümläuts - Song with \"quotes\" & ampersands\nspecial/file.mp3\n",
),
// AbsolutePath joins with the OS separator
// AbsolutePath joins with the OS separator.
Entry("absolute paths",
true,
filepath.FromSlash("#EXTM3U\n#PLAYLIST:Multi Track\n#EXTINF:120,Artist A - Song One\n/music/a/song1.mp3\n#EXTINF:241,Artist B - Song Two\n/music/b/song2.mp3\n#EXTINF:90,Artist with Ümläuts - Song with \"quotes\" & ampersands\n/música/special/file.mp3\n"),