Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
Googletest
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to JiHu GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Meng
Googletest
Commits
b46b86ee
Unverified
Commit
b46b86ee
authored
6 years ago
by
Gennadiy Civil
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #1719 from happyCoder92/master
docs: fix broken links
parents
6b89cb06
4e13415f
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
googletest/docs/advanced.md
+2
-2
2 additions, 2 deletions
googletest/docs/advanced.md
googletest/docs/faq.md
+3
-2
3 additions, 2 deletions
googletest/docs/faq.md
with
5 additions
and
4 deletions
googletest/docs/advanced.md
+
2
−
2
View file @
b46b86ee
...
...
@@ -3,7 +3,7 @@
## Introduction
Now that you have read the
[
googletest Primer
](
primer
)
and learned how to write
Now that you have read the
[
googletest Primer
](
primer
.md
)
and learned how to write
tests using googletest, it's time to learn some new tricks. This document will
show you more assertions as well as how to construct complex failure messages,
propagate fatal failures, reuse and speed up your test fixtures, and use various
...
...
@@ -152,7 +152,7 @@ c is 10
>
> 1. If you see a compiler error "no matching function to call" when using
> `ASSERT_PRED*` or `EXPECT_PRED*`, please see
> [this](faq#OverloadedPredicate) for how to resolve it.
> [this](faq
.md
#OverloadedPredicate) for how to resolve it.
> 1. Currently we only provide predicate assertions of arity <= 5. If you need
> a higher-arity assertion, let [us](https://github.com/google/googletest/issues) know.
...
...
This diff is collapsed.
Click to expand it.
googletest/docs/faq.md
+
3
−
2
View file @
b46b86ee
...
...
@@ -707,8 +707,9 @@ In general, the recommended way to cause the code to behave differently under
test is
[
Dependency Injection
](
https://en.wikipedia.org/wiki/Dependency_injection
)
. You can inject
different functionality from the test and from the production code. Since your
production code doesn't link in the for-test logic at all (the
[
`testonly`
](
http://go/testonly
)
attribute for BUILD targets helps to ensure
that), there is no danger in accidentally running it.
[
`testonly`
](
https://docs.bazel.build/versions/master/be/common-definitions.html#common.testonly
)
attribute for BUILD targets helps to ensure that), there is no danger in
accidentally running it.
However, if you
*really*
,
*really*
,
*really*
have no choice, and if you follow
the rule of ending your test program names with
`_test`
, you can use the
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment