Skip to content

Commit

Permalink
ignore test_toml_empty on github since it is buck related
Browse files Browse the repository at this point in the history
Summary: as per title

Reviewed By: ir-regular

Differential Revision: D50455941

fbshipit-source-id: 6f3ff2b7f04ea97308ac86a1098598e621aa636d
  • Loading branch information
perehonchuk authored and facebook-github-bot committed Oct 19, 2023
1 parent 4d3885c commit cfee0c2
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions crates/project_model/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -901,23 +901,26 @@ mod tests {

#[test]
fn test_toml_empty() {
let spec = r#"
if cfg!(feature = "buck") {
let spec = r#"
//- /.elp.toml
//- /app_a/src/app.erl
-module(app).
"#;
let dir = gen_project(spec);
let manifest =
ProjectManifest::discover(&AbsPathBuf::assert(dir.path().join("app_a/src/app.erl")));
if let Ok(Some(ProjectManifest::Toml(toml))) = manifest {
let expected_config = buck::ElpConfig::new(
AbsPathBuf::assert(dir.path().join(".elp.toml")),
None,
EqwalizerConfig::default(),
);
assert_eq!(expected_config, toml)
} else {
panic!("Expected Ok(Some(Toml)), got {:?}", manifest)
let dir = gen_project(spec);
let manifest = ProjectManifest::discover(&AbsPathBuf::assert(
dir.path().join("app_a/src/app.erl"),
));
if let Ok(Some(ProjectManifest::Toml(toml))) = manifest {
let expected_config = buck::ElpConfig::new(
AbsPathBuf::assert(dir.path().join(".elp.toml")),
None,
EqwalizerConfig::default(),
);
assert_eq!(expected_config, toml)
} else {
panic!("Expected Ok(Some(Toml)), got {:?}", manifest)
}
}
}

Expand Down

0 comments on commit cfee0c2

Please sign in to comment.