Skip to content

Commit e2abe34

Browse files
committed
formatting
1 parent f79aa68 commit e2abe34

2 files changed

Lines changed: 32 additions & 26 deletions

File tree

lua/neotest-vstest/dotnet_utils.lua

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ local function get_target_frameworks(proj_file)
6969

7070
if framework_info.TargetFramework == "" then
7171
local frameworks =
72-
vim.split(vim.trim(framework_info.TargetFrameworks or ""), ";", { trimempty = true })
72+
vim.split(vim.trim(framework_info.TargetFrameworks or ""), ";", { trimempty = true })
7373
table.sort(frameworks, function(a, b)
7474
return a > b
7575
end)
@@ -85,9 +85,9 @@ local function get_target_frameworks(proj_file)
8585
nio.scheduler()
8686
vim.notify(
8787
"Failed to get target framework for "
88-
.. proj_file
89-
.. " with error: "
90-
.. vim.inspect(framework_info),
88+
.. proj_file
89+
.. " with error: "
90+
.. vim.inspect(framework_info),
9191
vim.log.levels.ERROR
9292
)
9393

@@ -132,13 +132,13 @@ function M.get_proj_info(path)
132132
file_to_project_map[path] = proj_file
133133
else
134134
if
135-
not vim.iter(project_cache.projects):any(function(proj)
136-
if proj == proj_file then
137-
file_to_project_map[path] = proj_file
138-
return true
139-
end
140-
return false
141-
end)
135+
not vim.iter(project_cache.projects):any(function(proj)
136+
if proj == proj_file then
137+
file_to_project_map[path] = proj_file
138+
return true
139+
end
140+
return false
141+
end)
142142
then
143143
return nil
144144
end

lua/neotest-vstest/vstest/discovery/init.lua

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ local function discover_tests_in_projects(projects)
2626
end
2727

2828
local command = vim
29-
.iter({
30-
"discover",
31-
output_file,
32-
wait_file,
33-
dlls,
34-
})
35-
:flatten()
36-
:join(" ")
29+
.iter({
30+
"discover",
31+
output_file,
32+
wait_file,
33+
dlls,
34+
})
35+
:flatten()
36+
:join(" ")
3737

3838
logger.debug("neotest-vstest: Discovering tests using:")
3939
logger.debug(command)
@@ -114,14 +114,20 @@ function M.discover_project_tests(project, path)
114114
local rebuilt = false
115115

116116
if
117-
project_last_modified
118-
and path_last_modified
119-
and (project_last_modified < path_last_modified)
117+
project_last_modified
118+
and path_last_modified
119+
and (project_last_modified < path_last_modified)
120120
then
121-
logger.trace("rebuilding project " .. project.proj_file .. " on path: " .. path .. " last modified: "
122-
.. project_last_modified
123-
.. " path last modified: "
124-
.. path_last_modified)
121+
logger.trace(
122+
"rebuilding project "
123+
.. project.proj_file
124+
.. " on path: "
125+
.. path
126+
.. " last modified: "
127+
.. project_last_modified
128+
.. " path last modified: "
129+
.. path_last_modified
130+
)
125131
rebuilt = dotnet_utils.build_project(project)
126132
end
127133

0 commit comments

Comments
 (0)