TrackedEventAssert

Assertions about one tracked event, handed to the block of FakeAnalyticsProvider.assertTracked.

The param overloads mirror the parameters { } builder, so you assert a value the same way the event declared it. param("seats", 3) expects an AnalyticsValue.Int and fails against an AnalyticsValue.String holding "3" — the two reach a vendor differently.

Functions

Link copied to clipboard

Asserts the event carries no parameters at all.

Link copied to clipboard
fun param(key: String, value: AnalyticsValue)
fun param(key: String, value: Boolean)
fun param(key: String, value: Double)
fun param(key: String, value: Float)
fun param(key: String, value: Int)
fun param(key: String, value: Long)
fun param(key: String, value: String)