SpannedSubject.AndSpanFlags


interface SpannedSubject.AndSpanFlags


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

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

See Flag constants on Spanned for possible values.

Summary

Public functions

Unit
andFlags(flags: Int)

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

Public functions

andFlags

fun andFlags(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.