strikt-protobuf / strikt.protobuf / strikt.api.Assertion.Builder

Extensions for strikt.api.Assertion.Builder

isEmpty

Asserts that a com.google.protobuf.Any is empty and does not contain an object of any kind.

fun Builder<Any>.isEmpty(): Unit

unpack

Maps an assertion on com.google.protobuf.Any to an assertion on an unpacked message of type T.

fun <T : Message> Builder<Any>.unpack(): Builder<T>

unpacksTo

Asserts that the subject is a message of type T.

fun <T : Message> Builder<Any>.unpacksTo(): Builder<Any>