Skip to content

Commit

Permalink
symbol-table-handler_test: Added const to sources_dir declarations
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Bylicki <[email protected]>
  • Loading branch information
jbylicki committed Jul 3, 2023
1 parent 2391058 commit cb9e063
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions verilog/tools/ls/symbol-table-handler_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ TEST(SymbolTableHandlerTest, DefinitionNotTrackedFile) {
TEST(SymbolTableHandlerTest,
FindRenamableRangeAtCursorReturnsNullUntrackedFile) {
const auto tempdir = ::testing::TempDir();
std::string sources_dir = verible::file::JoinPath(tempdir, __FUNCTION__);
const std::string sources_dir = verible::file::JoinPath(tempdir, __FUNCTION__);
ASSERT_TRUE(verible::file::CreateDir(sources_dir).ok());

absl::string_view filelist_content = "b.sv\n";
Expand Down Expand Up @@ -271,7 +271,7 @@ TEST(SymbolTableHandlerTest,
TEST(SymbolTableHandlerTest,
FindRenamableRangeAtCursorReturnsNullDefinitionUnknown) {
const auto tempdir = ::testing::TempDir();
std::string sources_dir = verible::file::JoinPath(tempdir, __FUNCTION__);
const std::string sources_dir = verible::file::JoinPath(tempdir, __FUNCTION__);
ASSERT_TRUE(verible::file::CreateDir(sources_dir).ok());

absl::string_view filelist_content = "b.sv\n";
Expand Down Expand Up @@ -327,7 +327,7 @@ TEST(SymbolTableHandlerTest,

TEST(SymbolTableHandlerTest, FindRenamableRangeAtCursorReturnsLocation) {
const auto tempdir = ::testing::TempDir();
std::string sources_dir = verible::file::JoinPath(tempdir, __FUNCTION__);
const std::string sources_dir = verible::file::JoinPath(tempdir, __FUNCTION__);
ASSERT_TRUE(verible::file::CreateDir(sources_dir).ok());

absl::string_view filelist_content =
Expand Down Expand Up @@ -387,7 +387,7 @@ TEST(SymbolTableHandlerTest, FindRenamableRangeAtCursorReturnsLocation) {
TEST(SymbolTableHandlerTest,
FindRenameLocationsAndCreateEditsReturnsLocationsTest) {
const auto tempdir = ::testing::TempDir();
std::string sources_dir = verible::file::JoinPath(tempdir, __FUNCTION__);
const std::string sources_dir = verible::file::JoinPath(tempdir, __FUNCTION__);
ASSERT_TRUE(verible::file::CreateDir(sources_dir).ok());

absl::string_view filelist_content =
Expand Down Expand Up @@ -451,7 +451,7 @@ TEST(SymbolTableHandlerTest,
TEST(SymbolTableHandlerTest,
FindRenameLocationsAndCreateEditsReturnsLocationsOnDirtyFilesTest) {
const auto tempdir = ::testing::TempDir();
std::string sources_dir = verible::file::JoinPath(tempdir, __FUNCTION__);
const std::string sources_dir = verible::file::JoinPath(tempdir, __FUNCTION__);
ASSERT_TRUE(verible::file::CreateDir(sources_dir).ok());

absl::string_view filelist_content =
Expand Down

0 comments on commit cb9e063

Please sign in to comment.