devel/py-kgb - The NetBSD Packages Collection

Utilities for spying on function calls in unit tests

Ever deal with a large test suite before, monkey patching functions
to figure out whether it was called as expected? It's a dirty job.
If you're not careful, you can make a mess of things. Leave behind
evidence.

kgb's spies will take care of that little problem for you.

What are spies?

Spies intercept and record calls to functions. They can report on
how many times a function was called and with what arguments. They
can allow the function call to go through as normal, to block it,
or to reroute it to another function.

Spies are like mocks, but better. You're not mocking the world.
You're replacing very specific function logic, or listening to
functions without altering them.

Build dependencies

devel/py-setuptools devel/py-build misc/py-installer pkgtools/mktools pkgtools/cwrappers

Runtime dependencies

lang/python312 lang/python312

Binary packages

OSArchitectureVersion
(none)

Binary packages can be installed with the high-level tool pkgin (which can be installed with pkg_add) or pkg_add(1) (installed by default). The NetBSD packages collection is also designed to permit easy installation from source.

Available build options

(none)

Known vulnerabilities

The pkg_admin audit command locates any installed package which has been mentioned in security advisories as having vulnerabilities.

Please note the vulnerabilities database might not be fully accurate, and not every bug is exploitable with every configuration.


Problem reports, updates or suggestions for this package should be reported with send-pr.