arrange first bunch of tests

This commit is contained in:
NikVolf
2017-06-05 15:30:03 +03:00
parent e1d9dd2b79
commit b094228a22
6 changed files with 14 additions and 9 deletions

View File

@ -1,20 +1,20 @@
#![cfg(test)]
#[derive(Deserialize)]
#[derive(Deserialize, Debug)]
pub struct RuntimeValue {
#[serde(rename = "type")]
pub value_type: String,
pub value: String,
}
#[derive(Deserialize)]
#[derive(Deserialize, Debug)]
#[serde(tag = "type")]
pub enum Action {
#[serde(rename = "invoke")]
Invoke { field: String, args: Vec<RuntimeValue> }
}
#[derive(Deserialize)]
#[derive(Deserialize, Debug)]
#[serde(tag = "type")]
pub enum Command {
#[serde(rename = "module")]
@ -33,7 +33,7 @@ pub enum Command {
},
}
#[derive(Deserialize)]
#[derive(Deserialize, Debug)]
pub struct Spec {
pub source_filename: String,
pub commands: Vec<Command>,