@@ -6,15 +6,15 @@ blob_type!(InputErrorBlob, InputError);
66blob_type ! ( DecoderResultBlob , DecoderResult ) ;
77blob_type ! ( MaybeDecoderBlob , Option <Decoder >) ;
88
9- #[ cfg( feature = "tests" ) ]
9+ #[ cfg( test ) ]
1010#[ no_mangle]
1111pub extern "C" fn lib_ruby_parser__test__make_input_error__unsupported_encoding (
1212 s : StringBlob ,
1313) -> InputErrorBlob {
1414 InputErrorBlob :: from ( InputError :: UnsupportedEncoding ( String :: from ( s) ) )
1515}
1616
17- #[ cfg( feature = "tests" ) ]
17+ #[ cfg( test ) ]
1818#[ no_mangle]
1919pub extern "C" fn lib_ruby_parser__test__make_input_error__decoding_error (
2020 s : StringBlob ,
@@ -27,15 +27,15 @@ pub extern "C" fn LIB_RUBY_PARSER_drop_input_error(input_error: *mut InputError)
2727 unsafe { std:: ptr:: drop_in_place ( input_error) }
2828}
2929
30- #[ cfg( feature = "tests" ) ]
30+ #[ cfg( test ) ]
3131#[ no_mangle]
3232pub extern "C" fn lib_ruby_parser__test__make_decoder_result__ok (
3333 bytes : ByteListBlob ,
3434) -> DecoderResultBlob {
3535 DecoderResultBlob :: from ( DecoderResult :: Ok ( bytes. into ( ) ) )
3636}
3737
38- #[ cfg( feature = "tests" ) ]
38+ #[ cfg( test ) ]
3939#[ no_mangle]
4040pub extern "C" fn lib_ruby_parser__test__make_decoder_result__err (
4141 err : InputErrorBlob ,
@@ -58,7 +58,7 @@ pub struct Decoder {
5858 pub state : * mut std:: ffi:: c_void ,
5959}
6060
61- #[ cfg( feature = "tests" ) ]
61+ #[ cfg( test ) ]
6262#[ no_mangle]
6363pub extern "C" fn lib_ruby_parser__test__always_ok_decoder ( ) -> Decoder {
6464 #[ no_mangle]
@@ -79,7 +79,7 @@ pub extern "C" fn lib_ruby_parser__test__always_ok_decoder() -> Decoder {
7979 }
8080}
8181
82- #[ cfg( feature = "tests" ) ]
82+ #[ cfg( test ) ]
8383#[ no_mangle]
8484pub extern "C" fn lib_ruby_parser__test__always_err_decoder ( ) -> Decoder {
8585 #[ no_mangle]
@@ -102,13 +102,13 @@ pub extern "C" fn lib_ruby_parser__test__always_err_decoder() -> Decoder {
102102 }
103103}
104104
105- #[ cfg( feature = "tests" ) ]
105+ #[ cfg( test ) ]
106106#[ no_mangle]
107107pub extern "C" fn lib_ruby_parser__test__some_always_ok_decoder ( ) -> MaybeDecoderBlob {
108108 MaybeDecoderBlob :: from ( Some ( lib_ruby_parser__test__always_ok_decoder ( ) ) )
109109}
110110
111- #[ cfg( feature = "tests" ) ]
111+ #[ cfg( test ) ]
112112#[ no_mangle]
113113pub extern "C" fn lib_ruby_parser__test__none_decoder ( ) -> MaybeDecoderBlob {
114114 MaybeDecoderBlob :: from ( None )
0 commit comments