Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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.

Signed-off-by: Daniel Latypov <dlatypov@google.com>
Reviewed-by: David Gow <davidgow@google.com>
Reviewed-by: Brendan Higgins <brendanhiggins@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>

authored by

Daniel Latypov and committed by
Shuah Khan
58b391d7 9a6bb30a

+3 -5
+1 -2
Documentation/dev-tools/kunit/api/index.rst
··· 12 12 13 13 Documentation/dev-tools/kunit/api/test.rst 14 14 15 - - documents all of the standard testing API excluding mocking 16 - or mocking related features. 15 + - documents all of the standard testing API
+1 -2
Documentation/dev-tools/kunit/api/test.rst
··· 4 4 Test API 5 5 ======== 6 6 7 - This file documents all of the standard testing API excluding mocking or mocking 8 - related features. 7 + This file documents all of the standard testing API. 9 8 10 9 .. kernel-doc:: include/kunit/test.h 11 10 :internal:
+1 -1
Documentation/dev-tools/kunit/index.rst
··· 19 19 What is KUnit? 20 20 ============== 21 21 22 - KUnit is a lightweight unit testing and mocking framework for the Linux kernel. 22 + KUnit is a lightweight unit testing framework for the Linux kernel. 23 23 24 24 KUnit is heavily inspired by JUnit, Python's unittest.mock, and 25 25 Googletest/Googlemock for C++. KUnit provides facilities for defining unit test