Skip to content

Commit

Permalink
fix: fix test for processing files
Browse files Browse the repository at this point in the history
  • Loading branch information
meysamhadeli committed Nov 28, 2024
1 parent 3f56161 commit 4d2f7c3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code_analyzer/analyzer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func TestRunInSequence(t *testing.T) {
t.Run("TestGeneratePrompt_ActualImplementation", TestGeneratePrompt_ActualImplementation)
t.Run("TestNewCodeAnalyzer", TestNewCodeAnalyzer)
t.Run("TestGetProjectFiles", TestGetProjectFiles)
t.Run("TestProcessFile", TestProcessFile)
t.Run("TestProcessFileWithSupportedLanguageReturnTreeSitterResult", TestProcessFileWithSupportedLanguageReturnTreeSitterResult)
t.Run("TestApplyChanges_NewFile", TestApplyChanges_NewFile)
t.Run("TestApplyChanges_ModifyFile", TestApplyChanges_ModifyFile)
t.Run("TestApplyChanges_DeletedFile", TestApplyChanges_DeletedFile)
Expand Down Expand Up @@ -148,13 +148,13 @@ func TestGetProjectFiles(t *testing.T) {
}

// Test for ProcessFile
func TestProcessFile(t *testing.T) {
func TestProcessFileWithSupportedLanguageReturnTreeSitterResult(t *testing.T) {
setup(t)
content := []byte("class Test {}")

result := analyzer.ProcessFile("test.cs", content)

assert.Contains(t, result, "test.cs")
assert.Contains(t, result, "class: Test")
assert.NotEmpty(t, result)
}

Expand Down

0 comments on commit 4d2f7c3

Please sign in to comment.