예제 #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