assertNotEmpty
open fun <E : KoBaseProvider> List<E?>.assertNotEmpty(strict: Boolean = false, additionalMessage: String? = null, testName: String? = null): Nothing(source)
Deprecated (with error)
katachi reports things that exist and are wrong. Declare the file in layout { } instead.
Konsist's own non-emptiness assertion over a list. Not usable here — see assertNotNull for why katachi has no word for it.
Example 1: what to write instead
classes().assertNotEmpty() // compile error
layout { "useCase" / "*UseCase".ktFile() } // ok, and a better reportContent copied to clipboard
open fun <E : KoBaseProvider> Sequence<E?>.assertNotEmpty(strict: Boolean = false, additionalMessage: String? = null, testName: String? = null): Nothing(source)
Deprecated (with error)
katachi reports things that exist and are wrong. Declare the file in layout { } instead.
Konsist's own non-emptiness assertion over a sequence. Not usable here — see assertNotNull for why katachi has no word for it.
Example 1: what to write instead
classes().asSequence().assertNotEmpty() // compile error
layout { "useCase" / "*UseCase".ktFile() } // ok, and a better reportContent copied to clipboard