Skip to content

Commit 2422195

Browse files
committed
Fix existing tests
1 parent eb59a76 commit 2422195

File tree

5 files changed

+20
-8
lines changed

5 files changed

+20
-8
lines changed

ycmd/tests/clangd/subcommands_test.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -571,6 +571,10 @@ def test_Subcommands_DefinedSubcommands( self, app ):
571571
'GoToType',
572572
'RefactorRename',
573573
'RestartServer',
574+
'ResolveCallHierarchyItem',
575+
'ResolveTypeHierarchyItem',
576+
'CallHierarchy',
577+
'TypeHierarchy',
574578
'GoToAlternateFile' ] ) )
575579
},
576580
'route': '/defined_subcommands',

ycmd/tests/go/subcommands_test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,8 @@ def test_Subcommands_DefinedSubcommands( self, app ):
171171
'GoToType',
172172
'GoToSymbol',
173173
'FixIt',
174+
'CallHierarchy',
175+
'ResolveCallHierarchyItem',
174176
'RestartServer',
175177
'ExecuteCommand' ) )
176178

ycmd/tests/java/subcommands_test.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,10 @@ def test_Subcommands_DefinedSubcommands( self, app ):
180180
'GoToSymbol',
181181
'OrganizeImports',
182182
'RefactorRename',
183+
'CallHierarchy',
184+
'TypeHierarchy',
185+
'ResolveCallHierarchyItem',
186+
'ResolveTypeHierarchyItem',
183187
'RestartServer',
184188
'WipeWorkspace' ) )
185189

ycmd/tests/rust/diagnostics_test.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,22 +56,22 @@
5656
'kind': 'WARNING',
5757
'text': 'unused variable: `a`\n`#[warn(unused_variables)]` '
5858
'on by default [unused_variables]',
59-
'location': LocationMatcher( MAIN_FILEPATH, 20, 9 ),
60-
'location_extent': RangeMatcher( MAIN_FILEPATH, ( 20, 9 ), ( 20, 10 ) ),
59+
'location': LocationMatcher( MAIN_FILEPATH, 21, 9 ),
60+
'location_extent': RangeMatcher( MAIN_FILEPATH, ( 21, 9 ), ( 21, 10 ) ),
6161
'ranges': contains_exactly( RangeMatcher( MAIN_FILEPATH,
62-
( 20, 9 ),
63-
( 20, 10 ) ) ),
62+
( 21, 9 ),
63+
( 21, 10 ) ) ),
6464
'fixit_available': False
6565
} ),
6666
has_entries( {
6767
'kind': 'HINT',
6868
'text': 'if this is intentional, '
6969
'prefix it with an underscore: `_a` [unused_variables]',
70-
'location': LocationMatcher( MAIN_FILEPATH, 20, 9 ),
71-
'location_extent': RangeMatcher( MAIN_FILEPATH, ( 20, 9 ), ( 20, 10 ) ),
70+
'location': LocationMatcher( MAIN_FILEPATH, 21, 9 ),
71+
'location_extent': RangeMatcher( MAIN_FILEPATH, ( 21, 9 ), ( 21, 10 ) ),
7272
'ranges': contains_exactly( RangeMatcher( MAIN_FILEPATH,
73-
( 20, 9 ),
74-
( 20, 10 ) ) ),
73+
( 21, 9 ),
74+
( 21, 10 ) ) ),
7575
'fixit_available': False
7676
} ),
7777
),

ycmd/tests/rust/subcommands_test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,8 @@ def test_Subcommands_DefinedSubcommands( self, app ):
162162
'GoToReferences',
163163
'GoToSymbol',
164164
'GoToType',
165+
'CallHierarchy',
166+
'ResolveCallHierarchyItem',
165167
'RefactorRename',
166168
'RestartServer' ) )
167169

0 commit comments

Comments
 (0)