Skip to content
Snippets Groups Projects
Verified Commit 1ad639fb authored by Volker Schukai's avatar Volker Schukai :alien:
Browse files

chore: Refactor and reorganize file directories and tests

- Fix file path in test case for `TestMaskCodeBlocks` in `source/utils/strings_test.go`
- Rename `testing/assets/code1.md` to `source/utils/fixtures/code1.md`
- Add `result` to the list of ignored files in `.gitignore`
parent 58a57987
No related branches found
No related tags found
No related merge requests found
......@@ -522,3 +522,4 @@ devenv.local.nix
.pre-commit-config.yaml
/.build/
result
File moved
......@@ -18,7 +18,7 @@ func TestMaskCodeBlocks(t *testing.T) {
count int
expected int
}{
{"/testing/assets/code1.md", "code1.md", 3, 9},
{"fixtures/code1.md", "code1.md", 3, 9},
}
for _, table := range tables {
......@@ -26,12 +26,14 @@ func TestMaskCodeBlocks(t *testing.T) {
//p, _ := os.Getwd()
_, p, _, _ := runtime.Caller(0)
// p = filepath.Dir(p) // go to parent directory
p = filepath.Dir(p) // go to parent directory
p = filepath.Dir(p) // go to parent directory
//p = filepath.Dir(p) // go to parent directory
//p = filepath.Dir(p) // go to parent directory
p = filepath.Dir(p) // go to parent directory
p = filepath.Join(p, table.input)
fmt.Println(p)
fmt.Println(os.Getwd())
fmt.Println(filepath.Dir(p))
code, err := os.ReadFile(p)
if err != nil {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment