Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
B
boolinq
Project
Project
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
boolinq
Commits
328be50d
Commit
328be50d
authored
Jan 11, 2014
by
Anton Bukov
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6 from Gluttton/remove_gmock_dependency
Remove Google Mock redundant dependency.
parents
ed1ca1c3
47d35e0a
Hide whitespace changes
Inline
Side-by-side
Showing
36 changed files
with
14 additions
and
64 deletions
+14
-64
AllTest.cpp
boolinq/AllTest.cpp
+1
-3
AnyTest.cpp
boolinq/AnyTest.cpp
+1
-3
AvgTest.cpp
boolinq/AvgTest.cpp
+0
-1
BitsRangeTest.cpp
boolinq/BitsRangeTest.cpp
+0
-1
BytesRangeTest.cpp
boolinq/BytesRangeTest.cpp
+1
-3
ConcatRangeTest.cpp
boolinq/ConcatRangeTest.cpp
+1
-3
ContainsTest.cpp
boolinq/ContainsTest.cpp
+1
-3
CountTest.cpp
boolinq/CountTest.cpp
+0
-1
DistinctRangeTest.cpp
boolinq/DistinctRangeTest.cpp
+1
-3
DotCallTest.cpp
boolinq/DotCallTest.cpp
+0
-1
ElementAtTest.cpp
boolinq/ElementAtTest.cpp
+1
-3
ForeachTest.cpp
boolinq/ForeachTest.cpp
+0
-1
GroupByRangeTest.cpp
boolinq/GroupByRangeTest.cpp
+1
-3
IterRangeTest.cpp
boolinq/IterRangeTest.cpp
+1
-3
LinqTest.cpp
boolinq/LinqTest.cpp
+0
-1
MaxTest.cpp
boolinq/MaxTest.cpp
+1
-3
MinTest.cpp
boolinq/MinTest.cpp
+0
-1
OrderByRangeTest.cpp
boolinq/OrderByRangeTest.cpp
+1
-3
ReverseRangeTest.cpp
boolinq/ReverseRangeTest.cpp
+1
-3
SelectRangeTest.cpp
boolinq/SelectRangeTest.cpp
+0
-1
SkipRangeTest.cpp
boolinq/SkipRangeTest.cpp
+0
-1
SkipWhileRangeTest.cpp
boolinq/SkipWhileRangeTest.cpp
+0
-1
SpeedTest.cpp
boolinq/SpeedTest.cpp
+0
-1
SumTest.cpp
boolinq/SumTest.cpp
+0
-1
TakeRangeTest.cpp
boolinq/TakeRangeTest.cpp
+0
-1
TakeWhileRangeTest.cpp
boolinq/TakeWhileRangeTest.cpp
+0
-1
ToContainerTest.cpp
boolinq/ToContainerTest.cpp
+0
-1
ToDequeTest.cpp
boolinq/ToDequeTest.cpp
+0
-1
ToListTest.cpp
boolinq/ToListTest.cpp
+0
-1
ToSetTest.cpp
boolinq/ToSetTest.cpp
+0
-1
ToVectorTest.cpp
boolinq/ToVectorTest.cpp
+0
-1
UnbitsRangeTest.cpp
boolinq/UnbitsRangeTest.cpp
+1
-3
UnbytesRangeTest.cpp
boolinq/UnbytesRangeTest.cpp
+0
-1
WhereRangeTest.cpp
boolinq/WhereRangeTest.cpp
+0
-1
main.cpp
boolinq/main.cpp
+1
-3
gmock
gmock
+0
-1
No files found.
boolinq/AllTest.cpp
View file @
328be50d
#include <vector>
#include <vector>
#include <string>
#include <string>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <gtest/gtest.h>
#include "boolinq.h"
#include "boolinq.h"
...
@@ -46,4 +45,4 @@ TEST(All, ThreeIntsSecond)
...
@@ -46,4 +45,4 @@ TEST(All, ThreeIntsSecond)
EXPECT_FALSE
(
rng
.
all
([](
int
a
){
return
a
>
1
;}));
EXPECT_FALSE
(
rng
.
all
([](
int
a
){
return
a
>
1
;}));
EXPECT_FALSE
(
rng
.
all
([](
int
a
){
return
a
==
1
;}));
EXPECT_FALSE
(
rng
.
all
([](
int
a
){
return
a
==
1
;}));
EXPECT_FALSE
(
rng
.
all
([](
int
a
){
return
a
<
2
;}));
EXPECT_FALSE
(
rng
.
all
([](
int
a
){
return
a
<
2
;}));
}
}
\ No newline at end of file
boolinq/AnyTest.cpp
View file @
328be50d
#include <vector>
#include <vector>
#include <string>
#include <string>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <gtest/gtest.h>
#include "boolinq.h"
#include "boolinq.h"
...
@@ -30,4 +29,4 @@ TEST(Any, ThreeInts)
...
@@ -30,4 +29,4 @@ TEST(Any, ThreeInts)
EXPECT_FALSE
(
rng
.
any
([](
int
a
){
return
a
==
4
;}));
EXPECT_FALSE
(
rng
.
any
([](
int
a
){
return
a
==
4
;}));
EXPECT_FALSE
(
rng
.
any
([](
int
a
){
return
a
<
1
;}));
EXPECT_FALSE
(
rng
.
any
([](
int
a
){
return
a
<
1
;}));
EXPECT_FALSE
(
rng
.
any
([](
int
a
){
return
a
>
3
;}));
EXPECT_FALSE
(
rng
.
any
([](
int
a
){
return
a
>
3
;}));
}
}
\ No newline at end of file
boolinq/AvgTest.cpp
View file @
328be50d
#include <list>
#include <list>
#include <vector>
#include <vector>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <gtest/gtest.h>
#include "boolinq.h"
#include "boolinq.h"
...
...
boolinq/BitsRangeTest.cpp
View file @
328be50d
#include <vector>
#include <vector>
#include <string>
#include <string>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <gtest/gtest.h>
#include "CommonTests.h"
#include "CommonTests.h"
...
...
boolinq/BytesRangeTest.cpp
View file @
328be50d
#include <vector>
#include <vector>
#include <string>
#include <string>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <gtest/gtest.h>
#include "CommonTests.h"
#include "CommonTests.h"
...
@@ -124,4 +123,4 @@ TEST(BytesRange, IntsLF)
...
@@ -124,4 +123,4 @@ TEST(BytesRange, IntsLF)
auto
dst
=
rng
.
bytes
(
LastToFirst
);
auto
dst
=
rng
.
bytes
(
LastToFirst
);
CheckRangeEqArray
(
dst
,
ans
);
CheckRangeEqArray
(
dst
,
ans
);
}
}
\ No newline at end of file
boolinq/ConcatRangeTest.cpp
View file @
328be50d
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <gtest/gtest.h>
#include "CommonTests.h"
#include "CommonTests.h"
...
@@ -56,4 +55,4 @@ TEST(ConcatRange, ArrayVectorArray)
...
@@ -56,4 +55,4 @@ TEST(ConcatRange, ArrayVectorArray)
auto
dst
=
rng1
.
concat
(
rng2
).
concat
(
rng3
);
auto
dst
=
rng1
.
concat
(
rng2
).
concat
(
rng3
);
CheckRangeEqArray
(
dst
,
ans
);
CheckRangeEqArray
(
dst
,
ans
);
}
}
\ No newline at end of file
boolinq/ContainsTest.cpp
View file @
328be50d
#include <vector>
#include <vector>
#include <string>
#include <string>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <gtest/gtest.h>
#include "boolinq.h"
#include "boolinq.h"
...
@@ -44,4 +43,4 @@ TEST(Contains, FiveStrings)
...
@@ -44,4 +43,4 @@ TEST(Contains, FiveStrings)
EXPECT_FALSE
(
rng
.
contains
(
"dino"
));
EXPECT_FALSE
(
rng
.
contains
(
"dino"
));
EXPECT_FALSE
(
rng
.
contains
(
"lord"
));
EXPECT_FALSE
(
rng
.
contains
(
"lord"
));
}
}
\ No newline at end of file
boolinq/CountTest.cpp
View file @
328be50d
#include <list>
#include <list>
#include <vector>
#include <vector>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <gtest/gtest.h>
#include "boolinq.h"
#include "boolinq.h"
...
...
boolinq/DistinctRangeTest.cpp
View file @
328be50d
#include <vector>
#include <vector>
#include <string>
#include <string>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <gtest/gtest.h>
#include "CommonTests.h"
#include "CommonTests.h"
...
@@ -101,4 +100,4 @@ TEST(DistinctRange, OneFieldFront)
...
@@ -101,4 +100,4 @@ TEST(DistinctRange, OneFieldFront)
auto
dst
=
rng
.
distinct
([](
const
Man
&
man
){
return
man
.
age
;});
auto
dst
=
rng
.
distinct
([](
const
Man
&
man
){
return
man
.
age
;});
CheckRangeEqSet
(
dst
,
ans
);
CheckRangeEqSet
(
dst
,
ans
);
}
}
\ No newline at end of file
boolinq/DotCallTest.cpp
View file @
328be50d
...
@@ -3,7 +3,6 @@
...
@@ -3,7 +3,6 @@
#include <vector>
#include <vector>
#include <string>
#include <string>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <gtest/gtest.h>
#include "CommonTests.h"
#include "CommonTests.h"
...
...
boolinq/ElementAtTest.cpp
View file @
328be50d
#include <vector>
#include <vector>
#include <string>
#include <string>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <gtest/gtest.h>
#include "boolinq.h"
#include "boolinq.h"
...
@@ -38,4 +37,4 @@ TEST(ElementAt, FiveStrings)
...
@@ -38,4 +37,4 @@ TEST(ElementAt, FiveStrings)
EXPECT_EQ
(
"nokia"
,
rng
.
elementAt
(
2
));
EXPECT_EQ
(
"nokia"
,
rng
.
elementAt
(
2
));
EXPECT_EQ
(
"oracle"
,
rng
.
elementAt
(
3
));
EXPECT_EQ
(
"oracle"
,
rng
.
elementAt
(
3
));
EXPECT_EQ
(
"ponny"
,
rng
.
elementAt
(
4
));
EXPECT_EQ
(
"ponny"
,
rng
.
elementAt
(
4
));
}
}
\ No newline at end of file
boolinq/ForeachTest.cpp
View file @
328be50d
...
@@ -2,7 +2,6 @@
...
@@ -2,7 +2,6 @@
#include <vector>
#include <vector>
#include <string>
#include <string>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <gtest/gtest.h>
#include "boolinq.h"
#include "boolinq.h"
...
...
boolinq/GroupByRangeTest.cpp
View file @
328be50d
#include <vector>
#include <vector>
#include <string>
#include <string>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <gtest/gtest.h>
#include "CommonTests.h"
#include "CommonTests.h"
...
@@ -130,4 +129,4 @@ TEST(GroupByRange, CountChildrenByAge)
...
@@ -130,4 +129,4 @@ TEST(GroupByRange, CountChildrenByAge)
EXPECT_THROW(dst.nextObject(), EnumeratorEndException);
EXPECT_THROW(dst.nextObject(), EnumeratorEndException);
}
}
*/
*/
\ No newline at end of file
boolinq/IterRangeTest.cpp
View file @
328be50d
...
@@ -3,7 +3,6 @@
...
@@ -3,7 +3,6 @@
#include <vector>
#include <vector>
#include <string>
#include <string>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <gtest/gtest.h>
#include "CommonTests.h"
#include "CommonTests.h"
...
@@ -92,4 +91,4 @@ TEST(IterRange, EmptyVector)
...
@@ -92,4 +91,4 @@ TEST(IterRange, EmptyVector)
auto
rng
=
from
(
src
);
auto
rng
=
from
(
src
);
EXPECT_THROW
(
rng
.
nextObject
(),
EnumeratorEndException
);
EXPECT_THROW
(
rng
.
nextObject
(),
EnumeratorEndException
);
}
}
\ No newline at end of file
boolinq/LinqTest.cpp
View file @
328be50d
...
@@ -3,7 +3,6 @@
...
@@ -3,7 +3,6 @@
#include <vector>
#include <vector>
#include <string>
#include <string>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <gtest/gtest.h>
#include "boolinq.h"
#include "boolinq.h"
...
...
boolinq/MaxTest.cpp
View file @
328be50d
#include <vector>
#include <vector>
#include <string>
#include <string>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <gtest/gtest.h>
#include "boolinq.h"
#include "boolinq.h"
...
@@ -32,4 +31,4 @@ TEST(Max, FiveStrings)
...
@@ -32,4 +31,4 @@ TEST(Max, FiveStrings)
EXPECT_EQ
(
"zip"
,
rng
.
max
());
EXPECT_EQ
(
"zip"
,
rng
.
max
());
EXPECT_EQ
(
"apple"
,
rng
.
max
([](
std
::
string
s
){
return
s
.
size
();}));
EXPECT_EQ
(
"apple"
,
rng
.
max
([](
std
::
string
s
){
return
s
.
size
();}));
}
}
\ No newline at end of file
boolinq/MinTest.cpp
View file @
328be50d
#include <vector>
#include <vector>
#include <string>
#include <string>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <gtest/gtest.h>
#include "boolinq.h"
#include "boolinq.h"
...
...
boolinq/OrderByRangeTest.cpp
View file @
328be50d
#include <vector>
#include <vector>
#include <string>
#include <string>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <gtest/gtest.h>
#include "CommonTests.h"
#include "CommonTests.h"
...
@@ -123,4 +122,4 @@ TEST(OrderByRange, RandomStringByLength)
...
@@ -123,4 +122,4 @@ TEST(OrderByRange, RandomStringByLength)
auto
dst
=
rng
.
orderBy
([](
std
::
string
a
){
return
a
.
size
();});
auto
dst
=
rng
.
orderBy
([](
std
::
string
a
){
return
a
.
size
();});
CheckRangeEqArray
(
dst
,
ans
,
[](
const
std
::
string
&
s
){
return
s
.
size
();});
CheckRangeEqArray
(
dst
,
ans
,
[](
const
std
::
string
&
s
){
return
s
.
size
();});
}
}
\ No newline at end of file
boolinq/ReverseRangeTest.cpp
View file @
328be50d
...
@@ -3,7 +3,6 @@
...
@@ -3,7 +3,6 @@
#include <vector>
#include <vector>
#include <string>
#include <string>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <gtest/gtest.h>
#include "CommonTests.h"
#include "CommonTests.h"
...
@@ -31,4 +30,4 @@ TEST(ReverseRange, DoubleReverse)
...
@@ -31,4 +30,4 @@ TEST(ReverseRange, DoubleReverse)
auto
dst
=
rng
.
reverse
().
reverse
();
auto
dst
=
rng
.
reverse
().
reverse
();
CheckRangeEqArray
(
dst
,
ans
);
CheckRangeEqArray
(
dst
,
ans
);
}
}
\ No newline at end of file
boolinq/SelectRangeTest.cpp
View file @
328be50d
#include <vector>
#include <vector>
#include <string>
#include <string>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <gtest/gtest.h>
#include "CommonTests.h"
#include "CommonTests.h"
...
...
boolinq/SkipRangeTest.cpp
View file @
328be50d
#include <vector>
#include <vector>
#include <string>
#include <string>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <gtest/gtest.h>
#include "CommonTests.h"
#include "CommonTests.h"
...
...
boolinq/SkipWhileRangeTest.cpp
View file @
328be50d
#include <vector>
#include <vector>
#include <string>
#include <string>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <gtest/gtest.h>
#include "CommonTests.h"
#include "CommonTests.h"
...
...
boolinq/SpeedTest.cpp
View file @
328be50d
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <gtest/gtest.h>
#include <iostream>
#include <iostream>
...
...
boolinq/SumTest.cpp
View file @
328be50d
#include <list>
#include <list>
#include <vector>
#include <vector>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <gtest/gtest.h>
#include "boolinq.h"
#include "boolinq.h"
...
...
boolinq/TakeRangeTest.cpp
View file @
328be50d
#include <vector>
#include <vector>
#include <string>
#include <string>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <gtest/gtest.h>
#include "CommonTests.h"
#include "CommonTests.h"
...
...
boolinq/TakeWhileRangeTest.cpp
View file @
328be50d
#include <vector>
#include <vector>
#include <string>
#include <string>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <gtest/gtest.h>
#include "CommonTests.h"
#include "CommonTests.h"
...
...
boolinq/ToContainerTest.cpp
View file @
328be50d
...
@@ -2,7 +2,6 @@
...
@@ -2,7 +2,6 @@
#include <deque>
#include <deque>
#include <vector>
#include <vector>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <gtest/gtest.h>
#include "CommonTests.h"
#include "CommonTests.h"
...
...
boolinq/ToDequeTest.cpp
View file @
328be50d
#include <deque>
#include <deque>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <gtest/gtest.h>
#include "boolinq.h"
#include "boolinq.h"
...
...
boolinq/ToListTest.cpp
View file @
328be50d
#include <list>
#include <list>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <gtest/gtest.h>
#include "boolinq.h"
#include "boolinq.h"
...
...
boolinq/ToSetTest.cpp
View file @
328be50d
#include <vector>
#include <vector>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <gtest/gtest.h>
#include "boolinq.h"
#include "boolinq.h"
...
...
boolinq/ToVectorTest.cpp
View file @
328be50d
#include <vector>
#include <vector>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <gtest/gtest.h>
#include "boolinq.h"
#include "boolinq.h"
...
...
boolinq/UnbitsRangeTest.cpp
View file @
328be50d
#include <vector>
#include <vector>
#include <string>
#include <string>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <gtest/gtest.h>
#include "CommonTests.h"
#include "CommonTests.h"
...
@@ -42,4 +41,4 @@ TEST(UnbitsRange, OneByteLH)
...
@@ -42,4 +41,4 @@ TEST(UnbitsRange, OneByteLH)
auto
dst
=
rng
.
unbits
(
LowToHigh
);
auto
dst
=
rng
.
unbits
(
LowToHigh
);
CheckRangeEqArray
(
dst
,
ans
);
CheckRangeEqArray
(
dst
,
ans
);
}
}
\ No newline at end of file
boolinq/UnbytesRangeTest.cpp
View file @
328be50d
#include <vector>
#include <vector>
#include <string>
#include <string>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <gtest/gtest.h>
#include "CommonTests.h"
#include "CommonTests.h"
...
...
boolinq/WhereRangeTest.cpp
View file @
328be50d
#include <vector>
#include <vector>
#include <string>
#include <string>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <gtest/gtest.h>
#include "CommonTests.h"
#include "CommonTests.h"
...
...
boolinq/main.cpp
View file @
328be50d
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <gtest/gtest.h>
////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////
...
@@ -25,4 +24,4 @@ int main(int argc, char * argv[])
...
@@ -25,4 +24,4 @@ int main(int argc, char * argv[])
{
{
::
testing
::
InitGoogleMock
(
&
argc
,
argv
);
::
testing
::
InitGoogleMock
(
&
argc
,
argv
);
return
RUN_ALL_TESTS
();
return
RUN_ALL_TESTS
();
}
}
\ No newline at end of file
gmock
@
7aef63c8
Subproject commit 7aef63c873a1dc58860fc7736bda3cb961831bab
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