assertk / assertk.assertions / hasDirectChild

hasDirectChild

(jvm) fun Assert<File>.hasDirectChild(expected: File): Unit

Asserts the file has the expected direct child.