File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11use super :: Policy ;
22
33const SIGSUM_TEST1_2025 : & str = include_str ! ( "sigsum-test1-2025.builtin-policy" ) ;
4- const SIGSUM_TEST2_2025 : & str = include_str ! ( "sigsum-test1 -2025.builtin-policy" ) ;
5- const SIGSUM_TEST_2025_3 : & str = include_str ! ( "sigsum-test1 -2025.builtin-policy" ) ;
6- const SIGSUM_GENERAL_2025_1 : & str = include_str ! ( "sigsum-test1 -2025.builtin-policy" ) ;
4+ const SIGSUM_TEST2_2025 : & str = include_str ! ( "sigsum-test2 -2025.builtin-policy" ) ;
5+ const SIGSUM_TEST_2025_3 : & str = include_str ! ( "sigsum-test -2025-3 .builtin-policy" ) ;
6+ const SIGSUM_GENERIC_2025_1 : & str = include_str ! ( "sigsum-generic -2025-1 .builtin-policy" ) ;
77
88impl Policy {
99 pub fn builtin ( name : & str ) -> Option < Self > {
1010 match name {
1111 "sigsum-test1-2025" => Some ( Policy :: parse ( SIGSUM_TEST1_2025 ) . unwrap ( ) ) ,
1212 "sigsum-test2-2025" => Some ( Policy :: parse ( SIGSUM_TEST2_2025 ) . unwrap ( ) ) ,
1313 "sigsum-test-2025-3" => Some ( Policy :: parse ( SIGSUM_TEST_2025_3 ) . unwrap ( ) ) ,
14- "sigsum-general -2025-1" => Some ( Policy :: parse ( SIGSUM_GENERAL_2025_1 ) . unwrap ( ) ) ,
14+ "sigsum-generic -2025-1" => Some ( Policy :: parse ( SIGSUM_GENERIC_2025_1 ) . unwrap ( ) ) ,
1515 _ => None ,
1616 }
1717 }
@@ -26,6 +26,6 @@ mod tests {
2626 assert ! ( Policy :: builtin( "sigsum-test1-2025" ) . is_some( ) ) ;
2727 assert ! ( Policy :: builtin( "sigsum-test2-2025" ) . is_some( ) ) ;
2828 assert ! ( Policy :: builtin( "sigsum-test-2025-3" ) . is_some( ) ) ;
29- assert ! ( Policy :: builtin( "sigsum-general -2025-1" ) . is_some( ) ) ;
29+ assert ! ( Policy :: builtin( "sigsum-generic -2025-1" ) . is_some( ) ) ;
3030 }
3131}
You can’t perform that action at this time.
0 commit comments