-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: extract for typed test ins
- Loading branch information
Showing
6 changed files
with
17 additions
and
8 deletions.
There are no files selected for viewing
10 changes: 5 additions & 5 deletions
10
unit-core/src/main/kotlin/cc/unitmesh/core/unittest/TypedTestIns.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
package cc.unitmesh.core.unittest | ||
|
||
import cc.unitmesh.core.Instruction | ||
import cc.unitmesh.core.completion.CompletionBuilderType | ||
import cc.unitmesh.core.completion.TypedIns | ||
|
||
interface TypedTestIns { | ||
val type: TestCodeBuilderType | ||
|
||
fun unique(): Instruction | ||
abstract class TypedTestIns : TypedIns { | ||
override val type: CompletionBuilderType = CompletionBuilderType.FULL_FILE_COMPLETION | ||
abstract val testType: TestCodeBuilderType | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters