-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(rust): extract unit service API for Rust
- Loading branch information
Showing
5 changed files
with
67 additions
and
8 deletions.
There are no files selected for viewing
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
14 changes: 10 additions & 4 deletions
14
unit-picker/src/main/kotlin/cc/unitmesh/pick/builder/unittest/rust/RustTestCodeService.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,16 +1,22 @@ | ||
package cc.unitmesh.pick.builder.unittest.rust | ||
|
||
import cc.unitmesh.core.SupportedLang | ||
import cc.unitmesh.core.unittest.TypedTestIns | ||
import cc.unitmesh.pick.builder.unittest.base.UnitTestService | ||
import cc.unitmesh.pick.worker.job.JobContext | ||
import chapi.domain.core.CodeContainer | ||
import chapi.domain.core.CodeDataStruct | ||
|
||
class RustTestCodeService(val job: JobContext): UnitTestService { | ||
override fun isApplicable(dataStruct: CodeDataStruct): Boolean { | ||
return false | ||
class RustTestCodeService(val job: JobContext) : UnitTestService { | ||
override fun isApplicable(dataStruct: CodeDataStruct): Boolean = false | ||
|
||
override fun isApplicable(container: CodeContainer): Boolean = job.project.language == SupportedLang.RUST | ||
|
||
override fun build(container: CodeContainer): List<TypedTestIns> { | ||
return emptyList() | ||
} | ||
|
||
override fun build(dataStruct: CodeDataStruct): List<TypedTestIns> { | ||
TODO() | ||
return emptyList() | ||
} | ||
} |
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