Skip to content

Commit 6045bf2

Browse files
Merge pull request #3918 from assafpr:master2main
PiperOrigin-RevId: 464586117 Change-Id: Icda62f13b962f7408bb5698ae2b627391257d152
2 parents fa3f444 + dd72ed1 commit 6045bf2

File tree

14 files changed

+23
-23
lines changed

14 files changed

+23
-23
lines changed

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ fairly rigid coding style, as defined by the
8080
[google-styleguide](https://github.com/google/styleguide) project. All patches
8181
will be expected to conform to the style outlined
8282
[here](https://google.github.io/styleguide/cppguide.html). Use
83-
[.clang-format](https://github.com/google/googletest/blob/master/.clang-format)
84-
to check your formatting.
83+
[.clang-format](https://github.com/google/googletest/blob/main/.clang-format) to
84+
check your formatting.
8585

8686
## Requirements for Contributors
8787

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ that generates stub code for GoogleTest.
138138
## Contributing Changes
139139

140140
Please read
141-
[`CONTRIBUTING.md`](https://github.com/google/googletest/blob/master/CONTRIBUTING.md)
141+
[`CONTRIBUTING.md`](https://github.com/google/googletest/blob/main/CONTRIBUTING.md)
142142
for details on how to contribute to this project.
143143

144144
Happy testing!

docs/_layouts/default.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ <h2>{{ item.section }}</h2>
4848
<div class="footer">
4949
GoogleTest &middot;
5050
<a href="https://github.com/google/googletest">GitHub Repository</a> &middot;
51-
<a href="https://github.com/google/googletest/blob/master/LICENSE">License</a> &middot;
51+
<a href="https://github.com/google/googletest/blob/main/LICENSE">License</a> &middot;
5252
<a href="https://policies.google.com/privacy">Privacy Policy</a>
5353
</div>
5454
</div>

docs/advanced.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1142,8 +1142,8 @@ GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(FooTest);
11421142
11431143
You can see [sample7_unittest.cc] and [sample8_unittest.cc] for more examples.
11441144
1145-
[sample7_unittest.cc]: https://github.com/google/googletest/blob/master/googletest/samples/sample7_unittest.cc "Parameterized Test example"
1146-
[sample8_unittest.cc]: https://github.com/google/googletest/blob/master/googletest/samples/sample8_unittest.cc "Parameterized Test example with multiple parameters"
1145+
[sample7_unittest.cc]: https://github.com/google/googletest/blob/main/googletest/samples/sample7_unittest.cc "Parameterized Test example"
1146+
[sample8_unittest.cc]: https://github.com/google/googletest/blob/main/googletest/samples/sample8_unittest.cc "Parameterized Test example with multiple parameters"
11471147
11481148
### Creating Value-Parameterized Abstract Tests
11491149
@@ -1294,7 +1294,7 @@ TYPED_TEST(FooTest, HasPropertyA) { ... }
12941294

12951295
You can see [sample6_unittest.cc] for a complete example.
12961296

1297-
[sample6_unittest.cc]: https://github.com/google/googletest/blob/master/googletest/samples/sample6_unittest.cc "Typed Test example"
1297+
[sample6_unittest.cc]: https://github.com/google/googletest/blob/main/googletest/samples/sample6_unittest.cc "Typed Test example"
12981298

12991299
## Type-Parameterized Tests
13001300

@@ -1733,7 +1733,7 @@ You can do so by adding one line:
17331733
Now, sit back and enjoy a completely different output from your tests. For more
17341734
details, see [sample9_unittest.cc].
17351735

1736-
[sample9_unittest.cc]: https://github.com/google/googletest/blob/master/googletest/samples/sample9_unittest.cc "Event listener example"
1736+
[sample9_unittest.cc]: https://github.com/google/googletest/blob/main/googletest/samples/sample9_unittest.cc "Event listener example"
17371737

17381738
You may append more than one listener to the list. When an `On*Start()` or
17391739
`OnTestPartResult()` event is fired, the listeners will receive it in the order
@@ -1760,7 +1760,7 @@ by the former.
17601760

17611761
See [sample10_unittest.cc] for an example of a failure-raising listener.
17621762

1763-
[sample10_unittest.cc]: https://github.com/google/googletest/blob/master/googletest/samples/sample10_unittest.cc "Failure-raising listener example"
1763+
[sample10_unittest.cc]: https://github.com/google/googletest/blob/main/googletest/samples/sample10_unittest.cc "Failure-raising listener example"
17641764

17651765
## Running Test Programs: Advanced Options
17661766

docs/faq.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ If necessary, you can continue to derive test fixtures from a derived fixture.
267267
GoogleTest has no limit on how deep the hierarchy can be.
268268

269269
For a complete example using derived test fixtures, see
270-
[sample5_unittest.cc](https://github.com/google/googletest/blob/master/googletest/samples/sample5_unittest.cc).
270+
[sample5_unittest.cc](https://github.com/google/googletest/blob/main/googletest/samples/sample5_unittest.cc).
271271

272272
## My compiler complains "void value not ignored as it ought to be." What does this mean?
273273

docs/samples.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Googletest Samples
22

33
If you're like us, you'd like to look at
4-
[googletest samples.](https://github.com/google/googletest/tree/master/googletest/samples)
4+
[googletest samples.](https://github.com/google/googletest/blob/main/googletest/samples)
55
The sample directory has a number of well-commented samples showing how to use a
66
variety of googletest features.
77

googlemock/include/gmock/gmock-actions.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
// MORE INFORMATION:
123123
//
124124
// To learn more about using these macros, please search for 'ACTION' on
125-
// https://github.com/google/googletest/blob/master/docs/gmock_cook_book.md
125+
// https://github.com/google/googletest/blob/main/docs/gmock_cook_book.md
126126

127127
// IWYU pragma: private, include "gmock/gmock.h"
128128
// IWYU pragma: friend gmock/.*

googlemock/include/gmock/gmock-matchers.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@
240240
//
241241
// To learn more about using these macros, please search for 'MATCHER'
242242
// on
243-
// https://github.com/google/googletest/blob/master/docs/gmock_cook_book.md
243+
// https://github.com/google/googletest/blob/main/docs/gmock_cook_book.md
244244
//
245245
// This file also implements some commonly used argument matchers. More
246246
// matchers can be defined by the user implementing the

googlemock/src/gmock-spec-builders.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ void ReportUninterestingCall(CallReaction reaction, const std::string& msg) {
295295
"call should not happen. Do not suppress it by blindly adding "
296296
"an EXPECT_CALL() if you don't mean to enforce the call. "
297297
"See "
298-
"https://github.com/google/googletest/blob/master/docs/"
298+
"https://github.com/google/googletest/blob/main/docs/"
299299
"gmock_cook_book.md#"
300300
"knowing-when-to-expect for details.\n",
301301
stack_frames_to_skip);

googlemock/test/gmock-spec-builders_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2059,7 +2059,7 @@ class GMockVerboseFlagTest : public VerboseFlagPreservingFixture {
20592059
"call should not happen. Do not suppress it by blindly adding "
20602060
"an EXPECT_CALL() if you don't mean to enforce the call. "
20612061
"See "
2062-
"https://github.com/google/googletest/blob/master/docs/"
2062+
"https://github.com/google/googletest/blob/main/docs/"
20632063
"gmock_cook_book.md#"
20642064
"knowing-when-to-expect for details.";
20652065

0 commit comments

Comments
 (0)