@@ -51,6 +51,8 @@ pub struct Config {
5151// Building the mock server is slow, so use simple scenario when possible.
5252#[ derive( PartialEq , Copy , Clone ) ]
5353pub enum Scenario {
54+ /// No dist server content
55+ Empty ,
5456 /// Two dates, two manifests
5557 Full ,
5658 /// Two dates, v2 manifests
@@ -750,6 +752,7 @@ impl Release {
750752// Creates a mock dist server populated with some test data
751753fn create_mock_dist_server ( path : & Path , s : Scenario ) {
752754 let chans = match s {
755+ Scenario :: Empty => vec ! [ ] ,
753756 Scenario :: MissingComponent => vec ! [
754757 Release :: new( "nightly" , "1.37.0" , "2019-09-12" , "1" ) ,
755758 Release :: new( "nightly" , "1.37.0" , "2019-09-13" , "2" ) ,
@@ -808,6 +811,7 @@ fn create_mock_dist_server(path: &Path, s: Scenario) {
808811 } ;
809812
810813 let vs = match s {
814+ Scenario :: Empty => vec ! [ ] ,
811815 Scenario :: Full => vec ! [ ManifestVersion :: V1 , ManifestVersion :: V2 ] ,
812816 Scenario :: SimpleV1 | Scenario :: ArchivesV1 => vec ! [ ManifestVersion :: V1 ] ,
813817 Scenario :: SimpleV2
0 commit comments