Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pistache
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
pistache
Commits
60ae191a
Unverified
Commit
60ae191a
authored
Jul 17, 2020
by
Igor [hyperxor]
Committed by
GitHub
Jul 16, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix typo and constifiy variables (#800)
* Fix typo and add const * revert one change
parent
4ed3f8e1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
tests/stream_test.cc
tests/stream_test.cc
+3
-3
No files found.
tests/stream_test.cc
View file @
60ae191a
...
@@ -13,8 +13,8 @@
...
@@ -13,8 +13,8 @@
using
namespace
Pistache
;
using
namespace
Pistache
;
TEST
(
stream
,
test_buffer
)
{
TEST
(
stream
,
test_buffer
)
{
char
str
[]
=
"test_string"
;
c
onst
c
har
str
[]
=
"test_string"
;
size_t
len
=
strlen
(
str
);
const
size_t
len
=
strlen
(
str
);
RawBuffer
buffer1
(
str
,
len
,
false
);
RawBuffer
buffer1
(
str
,
len
,
false
);
RawBuffer
buffer2
=
buffer1
.
detach
(
0
);
RawBuffer
buffer2
=
buffer1
.
detach
(
0
);
...
@@ -29,7 +29,7 @@ TEST(stream, test_buffer) {
...
@@ -29,7 +29,7 @@ TEST(stream, test_buffer) {
ASSERT_EQ
(
buffer4
.
size
(),
0u
);
ASSERT_EQ
(
buffer4
.
size
(),
0u
);
ASSERT_EQ
(
buffer4
.
isDetached
(),
false
);
ASSERT_EQ
(
buffer4
.
isDetached
(),
false
);
ASSERT_THROW
(
buffer1
.
detach
(
2
*
len
)
;
,
std
::
range_error
);
ASSERT_THROW
(
buffer1
.
detach
(
2
*
len
),
std
::
range_error
);
}
}
TEST
(
stream
,
test_file_buffer
)
{
TEST
(
stream
,
test_file_buffer
)
{
...
...
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