doc / ch.tutteli.atrium.api.fluent.en_GB.creating.feature / MetaFeatureOption / f0

f0

fun <R> f0(f: KFunction0<R>): MetaFeature<R> (source)

Creates a MetaFeature for the given function f without arguments.

Notice for expectation function writers: you should use feature and pass a class reference instead of using this convenience function (e.g. feature(MyClass::fun)). This way we are always able to report the function name, even if the subject is not defined which occurs if a previous transformation of the subject could not be carried out.