Documentation: kunit: remove claims that kunit is a mocking framework
Subsystems (4)
PATCH 1/1 Documentation: kunit: remove claims that kunit is a mocking framework
KUnit does not have any first party support for "mocking".
The original RFC had some, but the code got dropped. However, the documentation patches never got updated. This fixes that.
https://kunit.dev/mocking.html has a current writeup on the status quo and will hopefully be eventually folded into the in-kernel Documentation.
--- Documentation/dev-tools/kunit/api/index.rst | 3 +-- Documentation/dev-tools/kunit/api/test.rst | 3 +-- Documentation/dev-tools/kunit/index.rst | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-)
Documentation/dev-tools/kunit/api/index.rst +1 -2
@@ -12,5 +12,4 @@ following sections: Documentation/dev-tools/kunit/api/test.rst - - documents all of the standard testing API excluding mocking - or mocking related features. + - documents all of the standard testing API
Documentation/dev-tools/kunit/api/test.rst +1 -2
@@ -4,8 +4,7 @@ Test API ======== -This file documents all of the standard testing API excluding mocking or mocking -related features. +This file documents all of the standard testing API. .. kernel-doc:: include/kunit/test.h :internal:
Documentation/dev-tools/kunit/index.rst +1 -1
@@ -19,7 +19,7 @@ KUnit - Unit Testing for the Linux Kernel What is KUnit? ============== -KUnit is a lightweight unit testing and mocking framework for the Linux kernel. +KUnit is a lightweight unit testing framework for the Linux kernel. KUnit is heavily inspired by JUnit, Python's unittest.mock, and Googletest/Googlemock for C++. KUnit provides facilities for defining unit test
base-commit: 2ab5d5e67f7ab2d2ecf67b8855ac65691f4e4b4d
Signature · 1 line
2.33.0.1079.g6e70778dc9-goog
Quoted 6 lines · Daniel Latypov
KUnit does not have any first party support for "mocking".
The original RFC had some, but the code got dropped. However, the documentation patches never got updated. This fixes that.
Quoted 6 lines
https://kunit.dev/mocking.html has a current writeup on the status quo and will hopefully be eventually folded into the in-kernel Documentation.
Signed-off-by Daniel Latypov <[email protected]>---
Yeah: this definitely is a bit misleading. Thanks for updating it.
Cheers,
-- David
Quoted 48 lines
Documentation/dev-tools/kunit/api/index.rst | 3 +-- Documentation/dev-tools/kunit/api/test.rst | 3 +-- Documentation/dev-tools/kunit/index.rst | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-)Documentation/dev-tools/kunit/api/index.rst +1
-2@@ -12,5 +12,4 @@ following sections: Documentation/dev-tools/kunit/api/test.rst - - documents all of the standard testing API excluding mocking - or mocking related features. + - documents all of the standard testing APIDocumentation/dev-tools/kunit/api/test.rst +1
-2@@ -4,8 +4,7 @@ Test API ======== -This file documents all of the standard testing API excluding mocking or mocking -related features. +This file documents all of the standard testing API. .. kernel-doc:: include/kunit/test.h :internal:Documentation/dev-tools/kunit/index.rst +1
-1@@ -19,7 +19,7 @@ KUnit - Unit Testing for the Linux Kernel What is KUnit? ============== -KUnit is a lightweight unit testing and mocking framework for the Linux kernel. +KUnit is a lightweight unit testing framework for the Linux kernel. KUnit is heavily inspired by JUnit, Python's unittest.mock, and Googletest/Googlemock for C++. KUnit provides facilities for defining unit testbase-commit:
2ab5d5e67f7ab2d2ecf67b8855ac65691f4e4b4d--
2.33.0.1079.g6e70778dc9-goog
Quoted 11 lines · Daniel Latypov
KUnit does not have any first party support for "mocking".
The original RFC had some, but the code got dropped. However, the documentation patches never got updated. This fixes that.
https://kunit.dev/mocking.html has a current writeup on the status quo and will hopefully be eventually folded into the in-kernel Documentation.
Signed-off-by Daniel Latypov <[email protected]>