aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur Zamarin <arthurzam@gentoo.org>2023-01-19 23:17:37 +0200
committerArthur Zamarin <arthurzam@gentoo.org>2023-01-19 23:17:37 +0200
commitecaf9a21a58bf441fba8d5e3a5d15f2dc56d1b45 (patch)
treec91b97d113d9ca1d13e98175b2ccaf5629faa254 /testdata
parentUse REPO profile base for profile caching (diff)
downloadpkgcheck-ecaf9a21a58bf441fba8d5e3a5d15f2dc56d1b45.tar.gz
pkgcheck-ecaf9a21a58bf441fba8d5e3a5d15f2dc56d1b45.tar.bz2
pkgcheck-ecaf9a21a58bf441fba8d5e3a5d15f2dc56d1b45.zip
UnusedInherits: fix false positives with indirect usage
Resolves: https://github.com/pkgcore/pkgcheck/issues/355 Resolves: https://github.com/pkgcore/pkgcheck/issues/527 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'testdata')
-rw-r--r--testdata/repos/eclass/InheritsCheck/UnusedInherits/UnusedInherits-1.ebuild16
1 files changed, 16 insertions, 0 deletions
diff --git a/testdata/repos/eclass/InheritsCheck/UnusedInherits/UnusedInherits-1.ebuild b/testdata/repos/eclass/InheritsCheck/UnusedInherits/UnusedInherits-1.ebuild
new file mode 100644
index 00000000..d3aaef8a
--- /dev/null
+++ b/testdata/repos/eclass/InheritsCheck/UnusedInherits/UnusedInherits-1.ebuild
@@ -0,0 +1,16 @@
+EAPI=7
+
+inherit inherit unused
+
+DESCRIPTION="Ebuild using inherited function indirectly"
+HOMEPAGE="https://github.com/pkgcore/pkgcheck"
+SLOT="0"
+LICENSE="BSD"
+
+src_prepare() {
+ inherit_public_func
+}
+
+src_test() {
+ edo unused_function
+}