Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[READY] Fixing tests for go v1.22.0 #1735

Merged
merged 1 commit into from
Feb 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions ycmd/tests/go/get_completions_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
# You should have received a copy of the GNU General Public License
# along with ycmd. If not, see <http://www.gnu.org/licenses/>.

from hamcrest import ( all_of,
assert_that,
from hamcrest import ( assert_that,
has_items,
has_key,
is_not )
is_not,
matches_regexp )
from unittest import TestCase

from ycmd.tests.go import setUpModule, tearDownModule # noqa
Expand All @@ -45,16 +45,15 @@ def test_GetCompletions_Basic( self, app ):
results = app.post_json( '/completions',
completion_data ).json[ 'completions' ]
assert_that( results,
all_of(
has_items(
CompletionEntryMatcher(
'Llongfile',
'int',
{
'detailed_info': 'Llongfile\n\n'
'detailed_info': matches_regexp( 'Llongfile\n\n'
'These flags define which text to'
' prefix to each log entry generated'
' by the Logger.',
' by the \\[?Logger\\]?\\.' ),
'menu_text': 'Llongfile',
'kind': 'Constant',
}
Expand All @@ -70,7 +69,7 @@ def test_GetCompletions_Basic( self, app ):
'menu_text': 'Logger',
'kind': 'Struct',
}
) ) ) )
) ) )


# This completer does not require or support resolve
Expand Down
Loading