Home
last modified time | relevance | path

Searched refs:TimeSeries (Results 1 – 13 of 13) sorted by relevance

/platform_testing/libraries/motion/tests/src/platform/test/motion/golden/
DJsonGoldenSerializerTest.kt37 private fun assertConversions(timeSeries: TimeSeries, json: String) { in assertConversions()
52 assertConversions(TimeSeries(listOf(), listOf()), """{"frame_ids":[],"features":[]}""") in emptyTimeSeries()
58 TimeSeries(listOf(TimestampFrameId(33)), listOf()), in timestampFrameId_asNumber()
66 TimeSeries(listOf(SupplementalFrameId("foo")), listOf()), in supplementalFrameId_asString()
74 TimeSeries(listOf(), listOf(Feature<Int>("foo", emptyList()))), in feature_withoutDataPoint_noType()
82 TimeSeries( in feature_withSingleDataPoint_specifiesType()
93 TimeSeries( in feature_withMultipleDataPoints_specifiesType()
105 TimeSeries( in feature_withNullDataPoints_specifiesTypeAndHandlesNull()
117 TimeSeries( in feature_withNotFoundDataPoints_specifiesTypeAndHandlesNotFound()
129 TimeSeries( in feature_withNullOnlyDataPoints_noType()
[all …]
DTimeSeriesTest.kt34 assertThrows(IllegalArgumentException::class.java) { TimeSeries(frameIds, properties) } in moreDataPointsThanFrames_throws()
42 assertThrows(IllegalArgumentException::class.java) { TimeSeries(frameIds, properties) } in lessDataPointsThanFrames_throws()
/platform_testing/libraries/motion/src/platform/test/motion/truth/
DTimeSeriesSubject.kt26 import platform.test.motion.golden.TimeSeries in <lambda>()
30 private constructor(failureMetadata: FailureMetadata, private val actual: TimeSeries?) : in <lambda>()
34 if (actual is TimeSeries && expected is TimeSeries) { in <lambda>()
44 private fun compareTimeSeries(expected: TimeSeries, actual: TimeSeries) = in <lambda>()
115 fun timeSeries(): Factory<TimeSeriesSubject, TimeSeries> { in <lambda>()
116 return Factory { failureMetadata: FailureMetadata, subject: TimeSeries? -> in <lambda>()
122 fun assertThat(timeSeries: TimeSeries): TimeSeriesSubject = in <lambda>()
/platform_testing/libraries/motion/src/platform/test/motion/
DRecordedMotion.kt23 import platform.test.motion.golden.TimeSeries in <lambda>()
35 val timeSeries: TimeSeries, in <lambda>()
58 fun MotionTestRule<*>.create(timeSeries: TimeSeries, screenshots: List<Bitmap>?) = in <lambda>()
DMotionTestRule.kt36 import platform.test.motion.golden.TimeSeries in <lambda>()
111 ): TimeSeries { in <lambda>()
/platform_testing/libraries/motion/src/platform/test/motion/golden/
DJsonGoldenSerializer.kt42 fun fromJson(jsonObject: JSONObject, typeRegistry: Map<String, DataPointType<*>>): TimeSeries { in fromJson()
51 return TimeSeries(frameIds, features) in fromJson()
55 fun toJson(golden: TimeSeries) = in toJson()
131 fun TimeSeries.createTypeRegistry(): Map<String, DataPointType<*>> = buildMap { in <lambda>() method
DTimeSeries.kt25 data class TimeSeries(val frameIds: List<FrameId>, val features: Map<String, Feature<*>>) { in <lambda>() dataClass
/platform_testing/libraries/motion/tests/src/platform/test/motion/truth/
DTimeSeriesSubjectTest.kt27 import platform.test.motion.golden.TimeSeries in <lambda>()
37 with(assertThrows { assertThat(TimeSeries(listOf(), emptyList())).isEqualTo("foo") }) { in <lambda>()
140 TimeSeries( in <lambda>()
145 TimeSeries( in <lambda>()
166 TimeSeries( in <lambda>()
DRecordedMotionSubjectTest.kt43 import platform.test.motion.golden.TimeSeries in <lambda>()
102 doReturn(TimeSeries(listOf(TimestampFrameId(1L)), emptyList())) in <lambda>()
155 actual: TimeSeries = TimeSeries(listOf(TimestampFrameId(0L)), emptyList()) in <lambda>()
/platform_testing/libraries/motion/tests/src/platform/test/motion/
DMotionTestRuleTest.kt32 import platform.test.motion.golden.TimeSeries
48 TimeSeries(listOf(), emptyList()),
55 .isEqualTo(TimeSeries(listOf(), emptyList())) in readGoldenTimeSeries_withExistingGolden_returnsParsedJson()
142 TimeSeries( in writeGeneratedTimeSeries_withScreenshots_writesVideoAndIncludesMetadata()
/platform_testing/libraries/motion/src/platform/test/motion/view/
DViewToolkit.kt34 import platform.test.motion.golden.TimeSeries in <lambda>()
165 TimeSeries( in recordSeekableAnimation()
/platform_testing/libraries/motion/compose/tests/src/platform/test/motion/compose/
DMotionTestValuesTest.kt39 import platform.test.motion.golden.TimeSeries
209 private fun TimeSeries.assertSingleFeatureMatches( in TimeSeries() method
/platform_testing/libraries/motion/compose/src/platform/test/motion/compose/
DComposeToolkit.kt64 import platform.test.motion.golden.TimeSeries in <lambda>()
267 TimeSeries( in recordMotion()