Skip to content

Commit

Permalink
Fixed lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mrigankmg committed Feb 19, 2025
1 parent 00fb6e6 commit 0af3497
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ public class MetricsPlugin(
@Serializable(Hooks.Serializer::class)
public class Hooks internal constructor(override val node: Node) : NodeWrapper {
public val onFlowBegin: NodeSyncHook1<PlayerFlowMetrics>
by NodeSerializableField(NodeSyncHook1.serializer(PlayerFlowMetrics.serializer()))
by NodeSerializableField(NodeSyncHook1.serializer(PlayerFlowMetrics.serializer()))

public val onFlowEnd: NodeSyncHook1<PlayerFlowMetrics>
by NodeSerializableField(NodeSyncHook1.serializer(PlayerFlowMetrics.serializer()))
by NodeSerializableField(NodeSyncHook1.serializer(PlayerFlowMetrics.serializer()))

public val onRenderEnd: NodeSyncHook3<Timing, RenderMetrics, PlayerFlowMetrics>
by NodeSerializableField(NodeSyncHook3.serializer(Timing.serializer(), RenderMetrics.serializer(), PlayerFlowMetrics.serializer()))
by NodeSerializableField(NodeSyncHook3.serializer(Timing.serializer(), RenderMetrics.serializer(), PlayerFlowMetrics.serializer()))

internal object Serializer : NodeWrapperSerializer<Hooks>(::Hooks)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import io.mockk.mockkObject
import io.mockk.slot
import io.mockk.verify
import org.junit.jupiter.api.Assertions.assertEquals
import org.junit.jupiter.api.Assertions.assertTrue
import org.junit.jupiter.api.Assertions.assertFalse
import org.junit.jupiter.api.Assertions.assertNotNull
import org.junit.jupiter.api.Assertions.assertTrue
import org.junit.jupiter.api.TestTemplate
import org.junit.jupiter.api.extension.ExtendWith
import kotlin.test.assertEquals
Expand Down Expand Up @@ -55,7 +55,7 @@ internal class MetricsPluginTest : PlayerTest() {
plugin?.hooks?.onFlowBegin?.tap("test") { _ ->
onFlowBeginTapped = true
}

player.start(simpleFlowString)
assertTrue(onFlowBeginTapped)
}
Expand Down

0 comments on commit 0af3497

Please sign in to comment.