diff options
author | Bartosz Duszel <bartosz.duszel@protonmail.com> | 2020-03-22 13:50:58 +0100 |
---|---|---|
committer | Bartosz Duszel <bartosz.duszel@protonmail.com> | 2020-03-22 13:50:58 +0100 |
commit | fd6a35eb59f1d8bce6afc773d0c44937326e0034 (patch) | |
tree | 5b2f0d92fc15fa9b99dfb716fed9344dd4f60776 /doc/HACKING/WritingTests.md | |
parent | dccac40e6998a63894823c0ca3f8ea9c21ef8f18 (diff) | |
download | tor-fd6a35eb59f1d8bce6afc773d0c44937326e0034.tar.gz tor-fd6a35eb59f1d8bce6afc773d0c44937326e0034.zip |
Update README files with common style.
- external links use markdown's []() format,
- local files are formated with backquotes,
- duplicated new lines were removed,
- unnecesary single spaces were removed,
- broken links and local paths were updated.
Diffstat (limited to 'doc/HACKING/WritingTests.md')
-rw-r--r-- | doc/HACKING/WritingTests.md | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/doc/HACKING/WritingTests.md b/doc/HACKING/WritingTests.md index 05de8e0be8..c619ef386e 100644 --- a/doc/HACKING/WritingTests.md +++ b/doc/HACKING/WritingTests.md @@ -126,7 +126,6 @@ unreached lines with 'x', and excluded reached lines with '!!!'. Note: you should never do this unless the line is meant to 100% unreachable by actual code. - What kinds of test should I write? ---------------------------------- @@ -269,7 +268,6 @@ it's supposed to do, and fail otherwise. Try to design your tests so that they check for the code's intended and documented functionality as much as possible. - ### Mock functions for testing in isolation Often we want to test that a function works right, but the function to @@ -382,7 +380,6 @@ Based on the implementation, we now see three more edge cases to test: * Removing an element from the end of the list * Removing an element from a position other than the end of the list. - ### What should my tests NOT do? Tests shouldn't require a network connection. @@ -401,7 +398,6 @@ When possible, tests should not be over-fit to the implementation. That is, the test should verify that the documented behavior is implemented, but should not break if other permissible behavior is later implemented. - ### Advanced techniques: Namespaces Sometimes, when you're doing a lot of mocking at once, it's convenient to @@ -414,7 +410,6 @@ them, you define `NS_MODULE` to a prefix to be used for your identifiers, and then use other macros in place of identifier names. See `src/test/test.h` for more documentation. - Integration tests: Calling Tor from the outside ----------------------------------------------- |