@@ -36,12 +36,12 @@ impl RfcbotConfig {
36
36
}
37
37
38
38
/// Are we allowed to auto-close issues after F-FCP in this repo?
39
- pub fn ffcp_auto_close ( & self , repo : & str ) -> bool {
39
+ pub fn should_ffcp_auto_close ( & self , repo : & str ) -> bool {
40
40
self . fcp_behaviors . get ( repo) . map ( |fcp| fcp. close ) . unwrap_or_default ( )
41
41
}
42
42
43
43
/// Are we allowed to auto-postpone issues after F-FCP in this repo?
44
- pub fn ffcp_auto_postpone ( & self , repo : & str ) -> bool {
44
+ pub fn should_ffcp_auto_postpone ( & self , repo : & str ) -> bool {
45
45
self . fcp_behaviors . get ( repo) . map ( |fcp| fcp. postpone ) . unwrap_or_default ( )
46
46
}
47
47
}
@@ -211,16 +211,16 @@ members = [
211
211
assert ! ( map. get( "random" ) . is_none( ) ) ;
212
212
213
213
// FFCP behavior correct:
214
- assert ! ( cfg. ffcp_auto_close ( "rust-lang/alpha" ) ) ;
215
- assert ! ( cfg. ffcp_auto_postpone ( "rust-lang/alpha" ) ) ;
216
- assert ! ( !cfg. ffcp_auto_close ( "foobar/beta" ) ) ;
217
- assert ! ( !cfg. ffcp_auto_postpone ( "foobar/beta" ) ) ;
218
- assert ! ( !cfg. ffcp_auto_close ( "bazquux/gamma" ) ) ;
219
- assert ! ( !cfg. ffcp_auto_postpone ( "bazquux/gamma" ) ) ;
220
- assert ! ( !cfg. ffcp_auto_close ( "wibble/epsilon" ) ) ;
221
- assert ! ( !cfg. ffcp_auto_postpone ( "wibble/epsilon" ) ) ;
222
- assert ! ( !cfg. ffcp_auto_close ( "random" ) ) ;
223
- assert ! ( !cfg. ffcp_auto_postpone ( "random" ) ) ;
214
+ assert ! ( cfg. should_ffcp_auto_close ( "rust-lang/alpha" ) ) ;
215
+ assert ! ( cfg. should_ffcp_auto_postpone ( "rust-lang/alpha" ) ) ;
216
+ assert ! ( !cfg. should_ffcp_auto_close ( "foobar/beta" ) ) ;
217
+ assert ! ( !cfg. should_ffcp_auto_postpone ( "foobar/beta" ) ) ;
218
+ assert ! ( !cfg. should_ffcp_auto_close ( "bazquux/gamma" ) ) ;
219
+ assert ! ( !cfg. should_ffcp_auto_postpone ( "bazquux/gamma" ) ) ;
220
+ assert ! ( !cfg. should_ffcp_auto_close ( "wibble/epsilon" ) ) ;
221
+ assert ! ( !cfg. should_ffcp_auto_postpone ( "wibble/epsilon" ) ) ;
222
+ assert ! ( !cfg. should_ffcp_auto_close ( "random" ) ) ;
223
+ assert ! ( !cfg. should_ffcp_auto_postpone ( "random" ) ) ;
224
224
}
225
225
226
226
#[ test]
0 commit comments