From 22b39195a0f58840af317b347db20a0bef829c4a Mon Sep 17 00:00:00 2001 From: Neenad Ingole Date: Sun, 15 Sep 2024 15:48:50 +0200 Subject: [PATCH] update path in test --- main_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main_test.go b/main_test.go index 0c88db0..d878cb6 100644 --- a/main_test.go +++ b/main_test.go @@ -28,7 +28,7 @@ func TestListAllTestsForGivenFile(t *testing.T) { fmt.Println(buffer.String()) require.JSONEq(t, - strings.ReplaceAll(`[{"name":"BenchmarkSomething","fileName":"benchmark_test.go","relativePath":"tests/benchmark_test.go","absolutePath":"/Users/neenadingole/opensource/gotest-ls/tests/benchmark_test.go","line":5,"pos":44},{"name":"Example_something","fileName":"example_test.go","relativePath":"tests/example_test.go","absolutePath":"/Users/neenadingole/opensource/gotest-ls/tests/example_test.go","line":5,"pos":40},{"name":"Fuzz_Sample","fileName":"fuzz_test.go","relativePath":"tests/fuzz_test.go","absolutePath":"/Users/neenadingole/opensource/gotest-ls/tests/fuzz_test.go","line":5,"pos":39},{"name":"Test/5_+_5_=_10","fileName":"table_test.go","relativePath":"tests/table_test.go","absolutePath":"/Users/neenadingole/opensource/gotest-ls/tests/table_test.go","line":23,"pos":265},{"name":"Test/5_-_5_=_0","fileName":"table_test.go","relativePath":"tests/table_test.go","absolutePath":"/Users/neenadingole/opensource/gotest-ls/tests/table_test.go","line":30,"pos":355},{"name":"Test/mixed_subtest_1","fileName":"table_test.go","relativePath":"tests/table_test.go","absolutePath":"/Users/neenadingole/opensource/gotest-ls/tests/table_test.go","line":12,"pos":111},{"name":"Test/mixed_test_2","fileName":"table_test.go","relativePath":"tests/table_test.go","absolutePath":"/Users/neenadingole/opensource/gotest-ls/tests/table_test.go","line":48,"pos":635},{"name":"TestSomething","fileName":"sample_test.go","relativePath":"tests/sample_test.go","absolutePath":"/Users/neenadingole/opensource/gotest-ls/tests/sample_test.go","line":7,"pos":49},{"name":"Test_subTestPattern/subtest","fileName":"subtest_test.go","relativePath":"tests/subtest_test.go","absolutePath":"/Users/neenadingole/opensource/gotest-ls/tests/subtest_test.go","line":10,"pos":121},{"name":"Test_subTestPattern/subtest_2","fileName":"subtest_test.go","relativePath":"tests/subtest_test.go","absolutePath":"/Users/neenadingole/opensource/gotest-ls/tests/subtest_test.go","line":15,"pos":193}]`, + strings.ReplaceAll(`[{"name":"BenchmarkSomething","fileName":"benchmark_test.go","relativePath":"tests/benchmark_test.go","absolutePath":"##PATH##/tests/benchmark_test.go","line":5,"pos":44},{"name":"Example_something","fileName":"example_test.go","relativePath":"tests/example_test.go","absolutePath":"##PATH##/tests/example_test.go","line":5,"pos":40},{"name":"Fuzz_Sample","fileName":"fuzz_test.go","relativePath":"tests/fuzz_test.go","absolutePath":"##PATH##/tests/fuzz_test.go","line":5,"pos":39},{"name":"Test/5_+_5_=_10","fileName":"table_test.go","relativePath":"tests/table_test.go","absolutePath":"##PATH##/tests/table_test.go","line":23,"pos":265},{"name":"Test/5_-_5_=_0","fileName":"table_test.go","relativePath":"tests/table_test.go","absolutePath":"##PATH##/tests/table_test.go","line":30,"pos":355},{"name":"Test/mixed_subtest_1","fileName":"table_test.go","relativePath":"tests/table_test.go","absolutePath":"##PATH##/tests/table_test.go","line":12,"pos":111},{"name":"Test/mixed_test_2","fileName":"table_test.go","relativePath":"tests/table_test.go","absolutePath":"##PATH##/tests/table_test.go","line":48,"pos":635},{"name":"TestSomething","fileName":"sample_test.go","relativePath":"tests/sample_test.go","absolutePath":"##PATH##/tests/sample_test.go","line":7,"pos":49},{"name":"Test_subTestPattern/subtest","fileName":"subtest_test.go","relativePath":"tests/subtest_test.go","absolutePath":"##PATH##/tests/subtest_test.go","line":10,"pos":121},{"name":"Test_subTestPattern/subtest_2","fileName":"subtest_test.go","relativePath":"tests/subtest_test.go","absolutePath":"##PATH##/tests/subtest_test.go","line":15,"pos":193}]`, "##PATH##", pwd), buffer.String()) }