summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAustin Sullivan <77407429+a-sully@users.noreply.github.com>2021-03-17 10:33:19 -0400
committerGitHub <noreply@github.com>2021-03-17 10:33:19 -0400
commit9c047902ac8843cd6f972ae9ff472f2baf790879 (patch)
tree3c699d4ae943a9de1cc1e364746daa3314d30699
parentb7d472f1225c5a64943821d8483fecb469d3f382 (diff)
downloadgoogletest-9c047902ac8843cd6f972ae9ff472f2baf790879.tar.gz
googletest-9c047902ac8843cd6f972ae9ff472f2baf790879.zip
Update nicestrictnaggy gmock cook_book links
An incorrect link is output to the user when these conditions are met.
-rw-r--r--googlemock/include/gmock/gmock-nice-strict.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/googlemock/include/gmock/gmock-nice-strict.h b/googlemock/include/gmock/gmock-nice-strict.h
index 9ee671f6..f6dbcc50 100644
--- a/googlemock/include/gmock/gmock-nice-strict.h
+++ b/googlemock/include/gmock/gmock-nice-strict.h
@@ -141,8 +141,8 @@ class GTEST_INTERNAL_EMPTY_BASE_CLASS NiceMock
!internal::HasStrictnessModifier<MockClass>(),
"Can't apply NiceMock to a class hierarchy that already has a "
"strictness modifier. See "
- "https://github.com/google/googletest/blob/master/googlemock/docs/"
- "cook_book.md#the-nice-the-strict-and-the-naggy-nicestrictnaggy");
+ "https://github.com/google/googletest/blob/master/docs/"
+ "gmock_cook_book.md#the-nice-the-strict-and-the-naggy-nicestrictnaggy");
NiceMock() : MockClass() {
static_assert(sizeof(*this) == sizeof(MockClass),
"The impl subclass shouldn't introduce any padding");
@@ -181,8 +181,8 @@ class GTEST_INTERNAL_EMPTY_BASE_CLASS NaggyMock
!internal::HasStrictnessModifier<MockClass>(),
"Can't apply NaggyMock to a class hierarchy that already has a "
"strictness modifier. See "
- "https://github.com/google/googletest/blob/master/googlemock/docs/"
- "cook_book.md#the-nice-the-strict-and-the-naggy-nicestrictnaggy");
+ "https://github.com/google/googletest/blob/master/docs/"
+ "gmock_cook_book.md#the-nice-the-strict-and-the-naggy-nicestrictnaggy");
public:
NaggyMock() : MockClass() {
@@ -224,8 +224,8 @@ class GTEST_INTERNAL_EMPTY_BASE_CLASS StrictMock
!internal::HasStrictnessModifier<MockClass>(),
"Can't apply StrictMock to a class hierarchy that already has a "
"strictness modifier. See "
- "https://github.com/google/googletest/blob/master/googlemock/docs/"
- "cook_book.md#the-nice-the-strict-and-the-naggy-nicestrictnaggy");
+ "https://github.com/google/googletest/blob/master/docs/"
+ "gmock_cook_book.md#the-nice-the-strict-and-the-naggy-nicestrictnaggy");
StrictMock() : MockClass() {
static_assert(sizeof(*this) == sizeof(MockClass),
"The impl subclass shouldn't introduce any padding");
OpenPOWER on IntegriCloud