示例#1
0
 def check_token_type(t, type):
     with CPyString.fromPy(type) as pys_type:
         lib.cw__test_helpers_check_token_type(UserTokenHelper.fromPy(t), pys_type.release_djinni_string())
         CPyException.toPyCheckAndRaise(ffi.NULL)
示例#2
0
 def check_cpp_token(t):
     lib.cw__test_helpers_check_cpp_token(UserTokenHelper.fromPy(t))
     CPyException.toPyCheckAndRaise(ffi.NULL)
示例#3
0
 def cpp_token_id(t):
     _ret_c = lib.cw__test_helpers_cpp_token_id(UserTokenHelper.fromPy(t))
     CPyException.toPyCheckAndRaise(_ret_c)
     _ret = CPyPrimitive.toPy(_ret_c)
     assert _ret is not None
     return _ret
示例#4
0
 def create_cpp_token():
     _ret_c = lib.cw__test_helpers_create_cpp_token()
     CPyException.toPyCheckAndRaise(_ret_c)
     _ret = UserTokenHelper.toPy(_ret_c)
     assert _ret is not None
     return _ret
示例#5
0
 def check_token_type(t, type):
     with CPyString.fromPy(type) as pys_type:
         lib.cw__test_helpers_check_token_type(
             UserTokenHelper.fromPy(t), pys_type.release_djinni_string())
         CPyException.toPyCheckAndRaise(ffi.NULL)
示例#6
0
 def cpp_token_id(t):
     _ret_c = lib.cw__test_helpers_cpp_token_id(UserTokenHelper.fromPy(t))
     CPyException.toPyCheckAndRaise(_ret_c)
     _ret = CPyPrimitive.toPy(_ret_c)
     assert _ret is not None
     return _ret
示例#7
0
 def check_cpp_token(t):
     lib.cw__test_helpers_check_cpp_token(UserTokenHelper.fromPy(t))
     CPyException.toPyCheckAndRaise(ffi.NULL)
示例#8
0
 def create_cpp_token():
     _ret_c = lib.cw__test_helpers_create_cpp_token()
     CPyException.toPyCheckAndRaise(_ret_c)
     _ret = UserTokenHelper.toPy(_ret_c)
     assert _ret is not None
     return _ret