SpannedSubject.WithSpanFlags


interface SpannedSubject.WithSpanFlags


Allows additional assertions to be made on the flags of matching spans.

Identical to AndSpanFlags, but this should be returned from has...() methods while AndSpanFlags should be returned from with...() methods.

Summary

Public functions

Unit
withFlags(flags: Int)

Checks that one of the matched spans has the expected flags.

Public functions

withFlags

fun withFlags(flags: Int): Unit

Checks that one of the matched spans has the expected flags.

Parameters
flags: Int

The expected flags. See SPAN_* constants on Spanned for possible values.