Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
benchmark
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
benchmark
Commits
f3b82a8e
Commit
f3b82a8e
authored
Apr 29, 2017
by
Joao Paulo Magalhaes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adopt standard style.
parent
86249c57
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
output_test.h
test/output_test.h
+1
-1
output_test_helper.cc
test/output_test_helper.cc
+2
-2
No files found.
test/output_test.h
View file @
f3b82a8e
...
@@ -77,7 +77,7 @@ struct ResultsCheckerEntry {
...
@@ -77,7 +77,7 @@ struct ResultsCheckerEntry {
std
::
string
name
;
std
::
string
name
;
std
::
map
<
std
::
string
,
std
::
string
>
values
;
std
::
map
<
std
::
string
,
std
::
string
>
values
;
ResultsCheckerEntry
(
std
::
string
const
&
n
)
:
name
(
n
)
{}
ResultsCheckerEntry
(
const
std
::
string
&
n
)
:
name
(
n
)
{}
int
NumThreads
()
const
;
int
NumThreads
()
const
;
...
...
test/output_test_helper.cc
View file @
f3b82a8e
...
@@ -183,7 +183,7 @@ class ResultsChecker {
...
@@ -183,7 +183,7 @@ class ResultsChecker {
void
SetHeader_
(
const
std
::
string
&
csv_header
);
void
SetHeader_
(
const
std
::
string
&
csv_header
);
void
SetValues_
(
const
std
::
string
&
entry_csv_line
);
void
SetValues_
(
const
std
::
string
&
entry_csv_line
);
std
::
vector
<
std
::
string
>
SplitCsv_
(
std
::
string
const
&
line
);
std
::
vector
<
std
::
string
>
SplitCsv_
(
const
std
::
string
&
line
);
};
};
...
@@ -263,7 +263,7 @@ void ResultsChecker::SetValues_(const std::string& entry_csv_line) {
...
@@ -263,7 +263,7 @@ void ResultsChecker::SetValues_(const std::string& entry_csv_line) {
}
}
// a quick'n'dirty csv splitter (eliminating quotes)
// a quick'n'dirty csv splitter (eliminating quotes)
std
::
vector
<
std
::
string
>
ResultsChecker
::
SplitCsv_
(
std
::
string
const
&
line
)
{
std
::
vector
<
std
::
string
>
ResultsChecker
::
SplitCsv_
(
const
std
::
string
&
line
)
{
std
::
vector
<
std
::
string
>
out
;
std
::
vector
<
std
::
string
>
out
;
if
(
line
.
empty
())
return
out
;
if
(
line
.
empty
())
return
out
;
if
(
!
field_names
.
empty
())
out
.
reserve
(
field_names
.
size
());
if
(
!
field_names
.
empty
())
out
.
reserve
(
field_names
.
size
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment