assertNameMatching

Asserts that all file declarations have names matching any of the specified glob patterns.

Example:

files.assertNameMatching("*Test.kt", "*Spec.kt")

Parameters

patterns

The glob patterns. At least one must match.

Throws

if any file name does not match any of the specified glob patterns.


Asserts that all file declarations in the scope have names matching any of the specified glob patterns.

Parameters

patterns

The glob patterns. At least one must match.

Throws

if any file name does not match any of the specified glob patterns.


Asserts that all class declarations have names matching any of the specified glob patterns. Supports '*' wildcards.

Example:

classes.assertNameMatching("*Controller", "*Handler")

Parameters

patterns

The glob patterns. At least one must match.

Throws

if any class name does not match any of the specified glob patterns.


fun KontureScope.assertNameMatching(vararg patterns: String)

Asserts that all class declarations in the scope have names matching any of the specified glob patterns. Supports '*' wildcards.

Parameters

patterns

The glob patterns. At least one must match.

Throws

if any class name does not match any of the specified glob patterns.