Skip to content

Commit

Permalink
Merge pull request #2274 from hzeller/feature-20241003-fix-statement-…
Browse files Browse the repository at this point in the history
…no-effect

Fix some statements without effect in test.
  • Loading branch information
hzeller authored Oct 3, 2024
2 parents 56d75de + bdc24d3 commit 032887d
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions verilog/tools/ls/symbol-table-handler_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

#include "verilog/tools/ls/symbol-table-handler.h"

#include <filesystem>
#include <memory>
#include <optional>
#include <string>
Expand Down Expand Up @@ -240,7 +239,6 @@ TEST(SymbolTableHandlerTest,
parameters.position.line = 1;
parameters.position.character = 11;

std::filesystem::absolute({sources_dir.begin(), sources_dir.end()}).string();
std::shared_ptr<VerilogProject> project = std::make_shared<VerilogProject>(
sources_dir, std::vector<std::string>(), "");
SymbolTableHandler symbol_table_handler;
Expand Down Expand Up @@ -290,7 +288,6 @@ TEST(SymbolTableHandlerTest,
parameters.position.line = 3; // pointing to 'vara'
parameters.position.character = 5;

std::filesystem::absolute({sources_dir.begin(), sources_dir.end()}).string();
std::shared_ptr<VerilogProject> project = std::make_shared<VerilogProject>(
sources_dir, std::vector<std::string>(), "");
SymbolTableHandler symbol_table_handler;
Expand Down Expand Up @@ -340,7 +337,6 @@ TEST(SymbolTableHandlerTest, FindRenamableRangeAtCursorReturnsLocation) {
parameters.position.line = 1;
parameters.position.character = 11;

std::filesystem::absolute({sources_dir.begin(), sources_dir.end()}).string();
std::shared_ptr<VerilogProject> project = std::make_shared<VerilogProject>(
sources_dir, std::vector<std::string>(), "");
SymbolTableHandler symbol_table_handler;
Expand Down Expand Up @@ -392,7 +388,6 @@ TEST(SymbolTableHandlerTest,
parameters.position.character = 11;
parameters.newName = "aaa";

std::filesystem::absolute({sources_dir.begin(), sources_dir.end()}).string();
std::shared_ptr<VerilogProject> project = std::make_shared<VerilogProject>(
sources_dir, std::vector<std::string>(), "");
SymbolTableHandler symbol_table_handler;
Expand Down Expand Up @@ -445,7 +440,6 @@ TEST(SymbolTableHandlerTest,
parameters.position.character = 11;
parameters.newName = "aaa";

std::filesystem::absolute({sources_dir.begin(), sources_dir.end()}).string();
std::shared_ptr<VerilogProject> project = std::make_shared<VerilogProject>(
sources_dir, std::vector<std::string>(), "");
SymbolTableHandler symbol_table_handler;
Expand Down Expand Up @@ -494,7 +488,6 @@ TEST(SymbolTableHandlerTest, UpdateWithUnparseableEditorContentRegression) {
const verible::file::testing::ScopedTestFile filelist(
sources_dir, filelist_content, "verible.filelist");
const std::string uri = verible::lsp::PathToLSPUri(sources_dir + "/a.sv");
std::filesystem::absolute({sources_dir.begin(), sources_dir.end()}).string();
std::shared_ptr<VerilogProject> project = std::make_shared<VerilogProject>(
sources_dir, std::vector<std::string>(), "");
SymbolTableHandler symbol_table_handler;
Expand Down

0 comments on commit 032887d

Please sign in to comment.