Skip to content

Commit

Permalink
refactor: json_filepath
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikaverpil committed Jul 3, 2024
1 parent 91cf203 commit 06d2365
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lua/neotest-golang/parse.lua
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function M.results(spec, result, tree)
if runner == "go" then
raw_output = async.fn.readfile(result.output)
elseif runner == "gotestsum" then
raw_output = async.fn.readfile(spec.context.jsonfile)
raw_output = async.fn.readfile(spec.context.json_filepath)
end

--- The 'go test' JSON output, converted into a lua table.
Expand Down
2 changes: 1 addition & 1 deletion lua/neotest-golang/runspec_dir.lua
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function M.build(pos)
}

if json_filepath ~= nil then
run_spec.context.jsonfile = json_filepath
run_spec.context.json_filepath = json_filepath
end

return run_spec
Expand Down
2 changes: 1 addition & 1 deletion lua/neotest-golang/runspec_test.lua
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function M.build(pos, strategy)
}

if json_filepath ~= nil then
run_spec.context.jsonfile = json_filepath
run_spec.context.json_filepath = json_filepath
end

if runspec_strategy ~= nil then
Expand Down

0 comments on commit 06d2365

Please sign in to comment.