remove straying tabs on line end (no functional change)
Esse commit está contido em:
pai
4de7236aca
commit
ad6fb8d731
4
Makefile
4
Makefile
@ -45,9 +45,9 @@ release: qswiki
|
||||
qswiki: $(WIKIOBJECTS)
|
||||
$(CXX) $(WIKIOBJECTS) ${LDFLAGS} -I database/hdr -o qswiki
|
||||
|
||||
test: $(TESTOBJECTS)
|
||||
test: $(TESTOBJECTS)
|
||||
$(CXX) $(TESTOBJECTS) ${LDFLAGS} -o test
|
||||
|
||||
|
||||
gtest: $(GTESTS_TESTDIR)/*.cpp $(GTEST_OBJECTS)
|
||||
$(CXX) -o gtest $(GTESTS_TESTDIR)/*.cpp $(GTEST_OBJECTS) $(GTEST_CXXFLAGS) $(GTEST_DIR)/src/gtest_main.cc $(GTEST_DIR)/src/gtest-all.cc $(GTEST_LDFLAGS)
|
||||
|
||||
|
@ -18,7 +18,7 @@ public:
|
||||
/* Activated after config has been read. Now we now which paths we need access to */
|
||||
virtual bool enablePreWorker(std::vector<std::string> fsPaths) = 0;
|
||||
|
||||
|
||||
|
||||
/* Activated after we have acquired resources (bound to ports etc.)
|
||||
*
|
||||
* This should allow us to further restrcit the process */
|
||||
|
@ -47,8 +47,8 @@ nav ul
|
||||
display: flex;
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
nav li
|
||||
{
|
||||
@ -56,25 +56,25 @@ nav li
|
||||
padding: 0;
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
nav a, nav a:visited
|
||||
{
|
||||
padding: 10px;
|
||||
text-decoration: none;
|
||||
color: white;
|
||||
color: white;
|
||||
display: block;
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
line-height: 100%;
|
||||
|
||||
|
||||
}
|
||||
|
||||
nav a:hover, nav a:focus
|
||||
{
|
||||
padding: 10px;
|
||||
text-decoration: none;
|
||||
text-decoration: none;
|
||||
background-color: white;
|
||||
color: #062463;
|
||||
display: block;
|
||||
@ -176,7 +176,7 @@ footer a, a:visited
|
||||
{
|
||||
text-decoration: none;
|
||||
|
||||
color: white;
|
||||
color: white;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
|
@ -33,25 +33,25 @@ TEST(Utils, hasKey) {
|
||||
ASSERT_FALSE(utils::hasKey(testmap, std::string { "testthere" }));
|
||||
ASSERT_FALSE(utils::hasKey(testmap, std::string { }));
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
TEST(Utils, urldecode)
|
||||
{
|
||||
std::string testr1 = "abc123=23";
|
||||
std::string decoded = utils::urldecode(testr1);
|
||||
ASSERT_TRUE(testr1 == decoded);
|
||||
|
||||
|
||||
std::string testr2 = "a%20b";
|
||||
std::string decoded2 = utils::urldecode(testr2);
|
||||
std::string expected2 = "a b";
|
||||
ASSERT_TRUE(decoded2 == expected2);
|
||||
|
||||
|
||||
std::string testr3 = "a%";
|
||||
std::string expected3 = "a%";
|
||||
|
||||
|
||||
std::string decoded3 = utils::urldecode(testr3);
|
||||
ASSERT_TRUE(testr3 == expected3);
|
||||
|
||||
|
||||
}
|
||||
|
||||
TEST(UTILS, toUInt)
|
||||
@ -62,7 +62,7 @@ TEST(UTILS, toUInt)
|
||||
unsigned int actual = utils::toUInt(number);
|
||||
ASSERT_EQ(expected, actual);
|
||||
});
|
||||
|
||||
|
||||
ASSERT_THROW(utils::toUInt("abc"), std::invalid_argument);
|
||||
ASSERT_THROW(utils::toUInt("999999999999999999999"), std::out_of_range);
|
||||
|
||||
|
@ -71,10 +71,10 @@ std::string utils::urldecode(std::string_view str)
|
||||
c = std::stoi( h , 0, 16);
|
||||
i+=2;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
result += c;
|
||||
|
||||
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
Carregando…
Referência em uma nova issue
Block a user