File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
core/src/test/kotlin/org/jetbrains/kotlinx/dataframe/codeGen Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ class CodeGenerationTests : BaseTest() {
59
59
val generated = codeGen.process(df, ::df)
60
60
val typeName = ReplCodeGeneratorImpl .markerInterfacePrefix
61
61
val expectedDeclaration = """
62
- @DataSchema(isOpen = false)
62
+ @DataSchema
63
63
interface $typeName
64
64
65
65
""" .trimIndent() + " \n " + expectedProperties(typeName, typeName)
@@ -84,7 +84,7 @@ class CodeGenerationTests : BaseTest() {
84
84
val generated = ReplCodeGenerator .create().process(df[0 ], property)
85
85
val typeName = ReplCodeGeneratorImpl .markerInterfacePrefix
86
86
val expectedDeclaration = """
87
- @DataSchema(isOpen = false)
87
+ @DataSchema
88
88
interface $typeName
89
89
90
90
""" .trimIndent() + " \n " + expectedProperties(typeName, typeName)
@@ -118,7 +118,7 @@ class CodeGenerationTests : BaseTest() {
118
118
""" .trimIndent()
119
119
120
120
val declaration2 = """
121
- @DataSchema(isOpen = false)
121
+ @DataSchema
122
122
interface $type2
123
123
124
124
val $dfName <$type2 >.age: $dataCol <$intName > @JvmName("${type2} _age") get() = this["age"] as $dataCol <$intName >
Original file line number Diff line number Diff line change 1
1
package org.jetbrains.kotlinx.dataframe.codeGen
2
2
3
3
import io.kotest.matchers.shouldBe
4
- import io.kotest.matchers.string.shouldBeEmpty
4
+ import io.kotest.matchers.string.shouldNotBeEmpty
5
5
import org.jetbrains.dataframe.impl.codeGen.ReplCodeGenerator
6
6
import org.jetbrains.dataframe.impl.codeGen.process
7
7
import org.jetbrains.kotlinx.dataframe.ColumnsContainer
@@ -186,8 +186,8 @@ class ReplCodeGenTests : BaseTest() {
186
186
repl.process<Test3 .A >()
187
187
repl.process<Test3 .B >()
188
188
repl.process<Test3 .C >()
189
- val c = repl.process(Test3 .df, Test3 ::df) // TODO this now generates stuff
190
- c.declarations.shouldBeEmpty ()
189
+ val c = repl.process(Test3 .df, Test3 ::df)
190
+ c.declarations.shouldNotBeEmpty ()
191
191
}
192
192
193
193
@Test
You can’t perform that action at this time.
0 commit comments