Skip to content

Commit

Permalink
refactor(c): update for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Jan 6, 2024
1 parent bef3dc9 commit 69e3149
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ language stages:
| Features | Java | Python | Go | Kotlin | TS/JS | C | C# | Scala | C++ | Rust |
|---------------|------|--------|----|--------|-------|----|----|-------|-----|------|
| http api decl || 🆕 | 🆕 ||| 🆕 | 🆕 | | | 🆕 |
| syntax parse |||||| 🆕 | 🆕 || 🆕 ||
| syntax parse |||||| | 🆕 || 🆕 ||
| function call || 🆕 | 🆕 ||| | | | ||
| arch/package || | ||| | || | 🆕 |
| real world || | | 🆕 || | | | | |

- [ArchGuard](https://github.com/archguard/archguard) - ArchGuard is a architecture workbench, also for architecture
governance, which can analysis architecture in container, component, code level, create architecure fitness functions,
and anaysis system dependencies..
- [ArchGuard](https://github.com/archguard/archguard) - ArchGuard is an architecture workbench, also for architecture
governance, which can analysis architecture in container, component, code level, create architecture fitness functions,
and analysis system dependencies.
- [UnitGen](https://github.com/unit-mesh/unit-gen) is a code fine-tuning data framework that generates data from your
existing codebase.
- [ChocolateFactory](https://github.com/unit-mesh/chocolate-factory) is a cutting-edge LLM toolkit designed to empower
Expand All @@ -38,7 +38,6 @@ PS: welcome to PR to send your projects

## Language Information


language versions(tested):

- Java: 8, 11, 17
Expand All @@ -47,7 +46,6 @@ language versions(tested):
- Rust: v1.60.0
- Python: 2, 3


// tier 1 languages
":chapi-ast-java",
":chapi-ast-typescript",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
package chapi.ast.cast

import org.junit.jupiter.api.Test
import java.io.File
import kotlin.test.assertEquals

internal class CFullIdentListenerTest {
@Test
internal fun shouldGetCodeFileName() {
val code = this::class.java.getResource("/_fixtures/examples/1-helloworld.c").readText()
val fileName = "helloworld.c"

val codeFile = CAnalyser().analysis(code, fileName)

assertEquals(codeFile.FullName, fileName)
@Test
fun allGrammarUnderResources() {
val content = this::class.java.getResource("/grammar")!!
File(content.toURI()).walkTopDown().forEach {
if (it.isFile && it.extension == "rs") {
CAnalyser().analysis(it.readText(), it.name)
}
}
}

@Test
Expand Down

0 comments on commit 69e3149

Please # to comment.