Exemple #1
0
def ClangdCompleter_CheckClangdVersion_test():
    eq_(clangd_completer.CheckClangdVersion(None), False)

    with patch('ycmd.completers.cpp.clangd_completer.GetVersion',
               side_effect=[
                   None, '5.0.0', clangd_completer.MIN_SUPPORTED_VERSION
               ]):
        eq_(clangd_completer.CheckClangdVersion('clangd'), True)
        eq_(clangd_completer.CheckClangdVersion('clangd'), False)
        eq_(clangd_completer.CheckClangdVersion('clangd'), True)
Exemple #2
0
def ClangdCompleter_CheckClangdVersion_test(*args):
    assert_that(clangd_completer.CheckClangdVersion('clangd'), equal_to(True))
    assert_that(clangd_completer.CheckClangdVersion('clangd'), equal_to(False))
    assert_that(clangd_completer.CheckClangdVersion('clangd'), equal_to(True))
    assert_that(clangd_completer.CheckClangdVersion('clangd'), equal_to(True))
    assert_that(clangd_completer.CheckClangdVersion('clangd'), equal_to(True))
    assert_that(clangd_completer.CheckClangdVersion('clangd'), equal_to(True))
Exemple #3
0
def ClangdCompleter_CheckClangdVersion_test(*args):
    eq_(clangd_completer.CheckClangdVersion('clangd'), True)
    eq_(clangd_completer.CheckClangdVersion('clangd'), False)
    eq_(clangd_completer.CheckClangdVersion('clangd'), True)
    eq_(clangd_completer.CheckClangdVersion('clangd'), True)
    eq_(clangd_completer.CheckClangdVersion('clangd'), True)
    eq_(clangd_completer.CheckClangdVersion('clangd'), True)