@@ -124,44 +124,38 @@ class CodeWhispererFileContextProviderTest {
124
124
fun `shouldFetchCrossfileContext - fully support` () {
125
125
assertThat(DefaultCodeWhispererFileContextProvider .shouldFetchCrossfileContext(CodeWhispererJava .INSTANCE , CodeWhispererUserGroup .CrossFile )).isTrue
126
126
assertThat(DefaultCodeWhispererFileContextProvider .shouldFetchCrossfileContext(CodeWhispererJava .INSTANCE , CodeWhispererUserGroup .Control )).isTrue
127
- }
128
127
129
- @Test
130
- fun `shouldFetchCrossfileContext - partially support` () {
131
- assertThat(DefaultCodeWhispererFileContextProvider .shouldFetchCrossfileContext(CodeWhispererPython .INSTANCE , CodeWhispererUserGroup .Control )).isFalse
132
128
assertThat(DefaultCodeWhispererFileContextProvider .shouldFetchCrossfileContext(CodeWhispererPython .INSTANCE , CodeWhispererUserGroup .CrossFile )).isTrue
129
+ assertThat(DefaultCodeWhispererFileContextProvider .shouldFetchCrossfileContext(CodeWhispererPython .INSTANCE , CodeWhispererUserGroup .Control )).isTrue
133
130
134
- assertThat(
135
- DefaultCodeWhispererFileContextProvider .shouldFetchCrossfileContext(
136
- CodeWhispererJavaScript .INSTANCE ,
137
- CodeWhispererUserGroup .Control
138
- )
139
- ).isFalse
140
131
assertThat(
141
132
DefaultCodeWhispererFileContextProvider .shouldFetchCrossfileContext(
142
133
CodeWhispererJavaScript .INSTANCE ,
143
134
CodeWhispererUserGroup .CrossFile
144
135
)
145
136
).isTrue
137
+ assertThat(DefaultCodeWhispererFileContextProvider .shouldFetchCrossfileContext(CodeWhispererJavaScript .INSTANCE , CodeWhispererUserGroup .Control )).isTrue
146
138
147
- assertThat(DefaultCodeWhispererFileContextProvider .shouldFetchCrossfileContext(CodeWhispererJsx .INSTANCE , CodeWhispererUserGroup .Control )).isFalse
148
139
assertThat(DefaultCodeWhispererFileContextProvider .shouldFetchCrossfileContext(CodeWhispererJsx .INSTANCE , CodeWhispererUserGroup .CrossFile )).isTrue
140
+ assertThat(DefaultCodeWhispererFileContextProvider .shouldFetchCrossfileContext(CodeWhispererJsx .INSTANCE , CodeWhispererUserGroup .Control )).isTrue
149
141
150
- assertThat(
151
- DefaultCodeWhispererFileContextProvider .shouldFetchCrossfileContext(
152
- CodeWhispererTypeScript .INSTANCE ,
153
- CodeWhispererUserGroup .Control
154
- )
155
- ).isFalse
156
142
assertThat(
157
143
DefaultCodeWhispererFileContextProvider .shouldFetchCrossfileContext(
158
144
CodeWhispererTypeScript .INSTANCE ,
159
145
CodeWhispererUserGroup .CrossFile
160
146
)
161
147
).isTrue
148
+ assertThat(DefaultCodeWhispererFileContextProvider .shouldFetchCrossfileContext(CodeWhispererTypeScript .INSTANCE , CodeWhispererUserGroup .Control )).isTrue
162
149
163
- assertThat(DefaultCodeWhispererFileContextProvider .shouldFetchCrossfileContext(CodeWhispererTsx .INSTANCE , CodeWhispererUserGroup .Control )).isFalse
164
150
assertThat(DefaultCodeWhispererFileContextProvider .shouldFetchCrossfileContext(CodeWhispererTsx .INSTANCE , CodeWhispererUserGroup .CrossFile )).isTrue
151
+ assertThat(DefaultCodeWhispererFileContextProvider .shouldFetchCrossfileContext(CodeWhispererTsx .INSTANCE , CodeWhispererUserGroup .Control )).isTrue
152
+ }
153
+
154
+ @Ignore(" Reenable this once we have any partial support language" )
155
+ @Test
156
+ fun `shouldFetchCrossfileContext - partially support` () {
157
+ assertThat(DefaultCodeWhispererFileContextProvider .shouldFetchCrossfileContext(CodeWhispererPython .INSTANCE , CodeWhispererUserGroup .Control )).isFalse
158
+ assertThat(DefaultCodeWhispererFileContextProvider .shouldFetchCrossfileContext(CodeWhispererPython .INSTANCE , CodeWhispererUserGroup .CrossFile )).isTrue
165
159
}
166
160
167
161
@Test
0 commit comments