SpannedSubject.Colored


interface SpannedSubject.Colored


Allows assertions about the color of a span.

Summary

Public functions

SpannedSubject.AndSpanFlags!

Checks that at least one of the matched spans has the expected color.

Public functions

withColor

fun withColor(color: @ColorInt Int): SpannedSubject.AndSpanFlags!

Checks that at least one of the matched spans has the expected color.

Parameters
color: @ColorInt Int

The expected color.

Returns
SpannedSubject.AndSpanFlags!

A WithSpanFlags object for optional additional assertions on the flags.