aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitry <dimitry@ethdev.com>2015-08-13 17:18:29 +0800
committerDimitry <dimitry@ethdev.com>2015-08-13 17:18:29 +0800
commit5cfacc2e7af9219064d2e3a306d4b74156d8e390 (patch)
tree1a1d550e64ee3405f2a40ab46085692ea53e33fd
parent4de035e5badf8bf4658b39c27813e042afb87f9e (diff)
downloaddexon-solidity-5cfacc2e7af9219064d2e3a306d4b74156d8e390.tar
dexon-solidity-5cfacc2e7af9219064d2e3a306d4b74156d8e390.tar.gz
dexon-solidity-5cfacc2e7af9219064d2e3a306d4b74156d8e390.tar.bz2
dexon-solidity-5cfacc2e7af9219064d2e3a306d4b74156d8e390.tar.lz
dexon-solidity-5cfacc2e7af9219064d2e3a306d4b74156d8e390.tar.xz
dexon-solidity-5cfacc2e7af9219064d2e3a306d4b74156d8e390.tar.zst
dexon-solidity-5cfacc2e7af9219064d2e3a306d4b74156d8e390.zip
Error report: style issues
-rw-r--r--TestHelper.cpp5
-rw-r--r--boostTest.cpp8
2 files changed, 6 insertions, 7 deletions
diff --git a/TestHelper.cpp b/TestHelper.cpp
index 3869613c..15a5d563 100644
--- a/TestHelper.cpp
+++ b/TestHelper.cpp
@@ -319,7 +319,7 @@ int ImportTest::compareStates(State const& _stateExpect, State const& _statePost
int ImportTest::exportTest(bytes const& _output)
{
int err = 0;
- // export output
+ // export output
m_testObject["out"] = (_output.size() > 4096 && !Options::get().fulloutput) ? "#" + toString(_output.size()) : toHex(_output, 2, HexPrefix::Add);
// compare expected output with post output
@@ -797,8 +797,7 @@ Options::Options()
std::cout.rdbuf(strCout.rdbuf());
std::cerr.rdbuf(strCout.rdbuf());
}
- else
- if (indentLevel == "1")
+ else if (indentLevel == "1")
logVerbosity = Verbosity::NiceReport;
else
logVerbosity = Verbosity::Full;
diff --git a/boostTest.cpp b/boostTest.cpp
index 79ed27ab..824a8e8e 100644
--- a/boostTest.cpp
+++ b/boostTest.cpp
@@ -62,20 +62,20 @@ int main( int argc, char* argv[] )
? boost::exit_success
: results_collector.results( framework::master_test_suite().p_id ).result_code();
}
- catch( framework::nothing_to_test const& ) {
+ catch (framework::nothing_to_test const&) {
return boost::exit_success;
}
- catch( framework::internal_error const& ex ) {
+ catch (framework::internal_error const& ex) {
results_reporter::get_stream() << "Boost.Test framework internal error: " << ex.what() << std::endl;
return boost::exit_exception_failure;
}
- catch( framework::setup_error const& ex ) {
+ catch (framework::setup_error const& ex) {
results_reporter::get_stream() << "Test setup error: " << ex.what() << std::endl;
return boost::exit_exception_failure;
}
- catch( ... ) {
+ catch (...) {
results_reporter::get_stream() << "Boost.Test framework internal error: unknown reason" << std::endl;
return boost::exit_exception_failure;