Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
2cf9987c
Unverified
Commit
2cf9987c
authored
Jul 01, 2022
by
yutotnh
Browse files
fix: some typos in comment
parent
96f51426
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
googlemock/test/gmock-actions_test.cc
googlemock/test/gmock-actions_test.cc
+2
-2
googlemock/test/gmock-matchers-misc_test.cc
googlemock/test/gmock-matchers-misc_test.cc
+1
-1
googletest/include/gtest/internal/gtest-internal.h
googletest/include/gtest/internal/gtest-internal.h
+1
-1
googletest/src/gtest-internal-inl.h
googletest/src/gtest-internal-inl.h
+2
-2
No files found.
googlemock/test/gmock-actions_test.cc
View file @
2cf9987c
...
@@ -466,7 +466,7 @@ TEST(DefaultValueOfReferenceTest, IsInitiallyUnset) {
...
@@ -466,7 +466,7 @@ TEST(DefaultValueOfReferenceTest, IsInitiallyUnset) {
EXPECT_FALSE
(
DefaultValue
<
MyNonDefaultConstructible
&>::
IsSet
());
EXPECT_FALSE
(
DefaultValue
<
MyNonDefaultConstructible
&>::
IsSet
());
}
}
// Tests that DefaultValue<T&>::Exists is false initiall
l
y.
// Tests that DefaultValue<T&>::Exists is false initially.
TEST
(
DefaultValueOfReferenceTest
,
IsInitiallyNotExisting
)
{
TEST
(
DefaultValueOfReferenceTest
,
IsInitiallyNotExisting
)
{
EXPECT_FALSE
(
DefaultValue
<
int
&>::
Exists
());
EXPECT_FALSE
(
DefaultValue
<
int
&>::
Exists
());
EXPECT_FALSE
(
DefaultValue
<
MyDefaultConstructible
&>::
Exists
());
EXPECT_FALSE
(
DefaultValue
<
MyDefaultConstructible
&>::
Exists
());
...
@@ -807,7 +807,7 @@ TEST(ReturnTest, MoveOnlyResultType) {
...
@@ -807,7 +807,7 @@ TEST(ReturnTest, MoveOnlyResultType) {
""
);
""
);
}
}
// Tests that Return(v) is covar
a
int.
// Tests that Return(v) is covari
a
nt.
struct
Base
{
struct
Base
{
bool
operator
==
(
const
Base
&
)
{
return
true
;
}
bool
operator
==
(
const
Base
&
)
{
return
true
;
}
...
...
googlemock/test/gmock-matchers-misc_test.cc
View file @
2cf9987c
...
@@ -1561,7 +1561,7 @@ TEST(AnyOfArrayTest, Matchers) {
...
@@ -1561,7 +1561,7 @@ TEST(AnyOfArrayTest, Matchers) {
}
}
TEST_P
(
AnyOfArrayTestP
,
ExplainsMatchResultCorrectly
)
{
TEST_P
(
AnyOfArrayTestP
,
ExplainsMatchResultCorrectly
)
{
// AnyOfArray and AllOfArry use the same underlying template-template,
// AnyOfArray and AllOfArr
a
y use the same underlying template-template,
// thus it is sufficient to test one here.
// thus it is sufficient to test one here.
const
std
::
vector
<
int
>
v0
{};
const
std
::
vector
<
int
>
v0
{};
const
std
::
vector
<
int
>
v1
{
1
};
const
std
::
vector
<
int
>
v1
{
1
};
...
...
googletest/include/gtest/internal/gtest-internal.h
View file @
2cf9987c
...
@@ -461,7 +461,7 @@ class TestFactoryBase {
...
@@ -461,7 +461,7 @@ class TestFactoryBase {
TestFactoryBase
&
operator
=
(
const
TestFactoryBase
&
)
=
delete
;
TestFactoryBase
&
operator
=
(
const
TestFactoryBase
&
)
=
delete
;
};
};
// This class provides implementation of Te
a
stFactoryBase interface.
// This class provides implementation of TestFactoryBase interface.
// It is used in TEST and TEST_F macros.
// It is used in TEST and TEST_F macros.
template
<
class
TestClass
>
template
<
class
TestClass
>
class
TestFactoryImpl
:
public
TestFactoryBase
{
class
TestFactoryImpl
:
public
TestFactoryBase
{
...
...
googletest/src/gtest-internal-inl.h
View file @
2cf9987c
...
@@ -507,9 +507,9 @@ class GTEST_API_ UnitTestImpl {
...
@@ -507,9 +507,9 @@ class GTEST_API_ UnitTestImpl {
virtual
~
UnitTestImpl
();
virtual
~
UnitTestImpl
();
// There are two different ways to register your own TestPartResultReporter.
// There are two different ways to register your own TestPartResultReporter.
// You can register your own repoter to listen either only for test results
// You can register your own repo
r
ter to listen either only for test results
// from the current thread or for results from all threads.
// from the current thread or for results from all threads.
// By default, each per-thread test result repoter just passes a new
// By default, each per-thread test result repo
r
ter just passes a new
// TestPartResult to the global test result reporter, which registers the
// TestPartResult to the global test result reporter, which registers the
// test part result for the currently running test.
// test part result for the currently running test.
...
...
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