Skip to content

Commit

Permalink
Resolve conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
uniumuniu committed Oct 4, 2023
2 parents f100fae + 7dd5e0a commit 851996f
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions src/main/kotlin/com/featurevisor/types/Types.kt
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ data class ParsedFeature(
*/
data class FeatureAssertion(
val description: String?,
val environment: EnvironmentKey,
// bucket weight: 0 to 100
val at: Weight,
val context: Context,
Expand All @@ -319,18 +320,7 @@ data class TestSegment(
val assertions: List<SegmentAssertion>,
)

data class Test(
val description: String?,

// needed for feature testing
val tag: String?,
val environment: EnvironmentKey?,
val features: List<TestFeature>?,

// needed for segment testing
val segments: List<TestSegment>?,
)

data class Spec(
val tests: List<Test>,
)
sealed class Test {
data class Feature(val value: TestFeature) : Test()
data class Segment(val value: TestSegment) : Test()
}

0 comments on commit 851996f

Please sign in to comment.