You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: plugins/amazonq/chat/jetbrains-community/tst/software/aws/toolkits/jetbrains/services/amazonqFeatureDev/FeatureDevSessionContextTest.kt
+79-2Lines changed: 79 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,7 @@
3
3
4
4
importcom.intellij.openapi.vfs.VirtualFile
5
5
importcom.intellij.testFramework.RuleChain
6
+
importorg.junit.Assert.assertEquals
6
7
importorg.junit.Assert.assertFalse
7
8
importorg.junit.Assert.assertTrue
8
9
importorg.junit.Before
@@ -75,6 +76,7 @@ class FeatureDevSessionContextTest : FeatureDevTestBase(HeavyJavaCodeInsightTest
75
76
@Test
76
77
funtestZipProject() {
77
78
addFilesToProjectModule(
79
+
".gitignore",
78
80
".gradle/cached.jar",
79
81
"src/MyClass.java",
80
82
"gradlew",
@@ -83,6 +85,19 @@ class FeatureDevSessionContextTest : FeatureDevTestBase(HeavyJavaCodeInsightTest
83
85
"settings.gradle",
84
86
"build.gradle",
85
87
"gradle/wrapper/gradle-wrapper.properties",
88
+
"builder/GetTestBuilder.java",
89
+
".aws-sam/build/function1",
90
+
".gem/specs.rb",
91
+
"archive.zip",
92
+
"output.bin",
93
+
"images/logo.png",
94
+
"assets/header.jpg",
95
+
"icons/menu.svg",
96
+
"license.txt",
97
+
"License.md",
98
+
"node_modules/express",
99
+
"build/outputs",
100
+
"dist/bundle.js"
86
101
)
87
102
88
103
val zipResult = featureDevSessionContext.getProjectZip()
@@ -102,11 +117,73 @@ class FeatureDevSessionContextTest : FeatureDevTestBase(HeavyJavaCodeInsightTest
102
117
"gradlew",
103
118
"gradlew.bat",
104
119
"README.md",
105
-
"settings.gradle",
106
-
"build.gradle",
107
120
"gradle/wrapper/gradle-wrapper.properties",
121
+
"builder/GetTestBuilder.java"
108
122
)
109
123
110
124
assertTrue(zippedFiles == expectedFiles)
111
125
}
126
+
127
+
@Test
128
+
fun`test basic pattern conversion`() {
129
+
val input ="*.txt"
130
+
val expected ="(?:^|.*/?)[^/]*[^/]\\.txt(?:/.*)?\$"
Copy file name to clipboardExpand all lines: plugins/core/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/FeatureDevSessionContext.kt
+29-16Lines changed: 29 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -45,21 +45,34 @@ class RepoSizeLimitError(override val message: String) : RuntimeException(), Rep
0 commit comments