Skip to content

Commit

Permalink
commiting clang-format changes, but this time with more pizzazz
Browse files Browse the repository at this point in the history
  • Loading branch information
jlheflin committed Jan 30, 2025
1 parent 1bb7e5a commit 8951fd1
Showing 1 changed file with 15 additions and 21 deletions.
36 changes: 15 additions & 21 deletions tests/cxx/unit_tests/pluginplay/printing/mermaid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@
// }
// inline MODULE_RUN(TooManySubmods) { return results(); }


DECLARE_MODULE(Allnmers);
inline MODULE_CTOR(Allnmers) {
satisfies_property_type<testing::NullPT>();
Expand All @@ -65,9 +64,7 @@ inline MODULE_CTOR(BondBasedFragmenter) {
inline MODULE_RUN(BondBasedFragmenter) { return results(); }

DECLARE_MODULE(BrokenBonds);
inline MODULE_CTOR(BrokenBonds) {
satisfies_property_type<testing::NullPT>();
}
inline MODULE_CTOR(BrokenBonds) { satisfies_property_type<testing::NullPT>(); }
inline MODULE_RUN(BrokenBonds) { return results(); }

DECLARE_MODULE(ClusterPartition);
Expand All @@ -90,9 +87,7 @@ inline MODULE_CTOR(DCLCCapping) {
inline MODULE_RUN(DCLCCapping) { return results(); }

DECLARE_MODULE(EnergyMethod);
inline MODULE_CTOR(EnergyMethod) {
satisfies_property_type<testing::NullPT>();
}
inline MODULE_CTOR(EnergyMethod) { satisfies_property_type<testing::NullPT>(); }
inline MODULE_RUN(EnergyMethod) { return results(); }

DECLARE_MODULE(FragmentBasedMethod);
Expand All @@ -101,7 +96,6 @@ inline MODULE_CTOR(FragmentBasedMethod) {
add_submodule<testing::NullPT>("Energy method");
add_submodule<testing::NullPT>("Subsystem former");
add_submodule<testing::NullPT>("Weighter");

}
inline MODULE_RUN(FragmentBasedMethod) { return results(); }

Expand All @@ -115,7 +109,6 @@ inline MODULE_CTOR(FragmentDriver) {
add_submodule<testing::NullPT>("Intersection finder");
add_submodule<testing::NullPT>("Molecular graph");
add_submodule<testing::NullPT>("N-mer builder");

}
inline MODULE_RUN(FragmentDriver) { return results(); }

Expand All @@ -127,9 +120,7 @@ inline MODULE_CTOR(FragmentedChemicalSystemDriver) {
inline MODULE_RUN(FragmentedChemicalSystemDriver) { return results(); }

DECLARE_MODULE(GMBEWeights);
inline MODULE_CTOR(GMBEWeights) {
satisfies_property_type<testing::NullPT>();
}
inline MODULE_CTOR(GMBEWeights) { satisfies_property_type<testing::NullPT>(); }
inline MODULE_RUN(GMBEWeights) { return results(); }

DECLARE_MODULE(HeavyAtomPartition);
Expand Down Expand Up @@ -159,8 +150,6 @@ inline MODULE_CTOR(WeightedDistance) {
}
inline MODULE_RUN(WeightedDistance) { return results(); }



TEST_CASE("hello_world") {
pluginplay::ModuleManager mm;
// Load in Modules
Expand All @@ -181,29 +170,34 @@ TEST_CASE("hello_world") {
mm.add_module<EnergyMethod>("Energy Method");
mm.add_module<FragmentBasedMethod>("Fragment Based Method");
mm.add_module<FragmentDriver>("Fragment Driver");
mm.add_module<FragmentedChemicalSystemDriver>("FragmentedChemicalSystem Driver");
mm.add_module<FragmentedChemicalSystemDriver>(
"FragmentedChemicalSystem Driver");
mm.add_module<GMBEWeights>("GMBE Weights");
mm.add_module<HeavyAtomPartition>("Heavy Atom Partition");
mm.add_module<Intersections>("Intersections");
mm.add_module<NuclearGraph>("Nuclear Graph");
mm.add_module<WeightedDistance>("Weighted Distance");
mm.change_submod("DCLC Capping", "Connectivity", "Covalent Radius");
mm.change_submod("Fragment Based Method", "Energy method", "Energy Method");
mm.change_submod("Fragment Based Method", "Subsystem former", "FragmentedChemicalSystem Driver");
mm.change_submod("Fragment Based Method", "Subsystem former",
"FragmentedChemicalSystem Driver");
mm.change_submod("Fragment Based Method", "Weighter", "GMBE Weights");
mm.change_submod("Fragment Driver", "Atomic connectivity", "Covalent Radius");
mm.change_submod("Fragment Driver", "Cap broken bonds", "Weighted Distance");
mm.change_submod("Fragment Driver", "Atomic connectivity",
"Covalent Radius");
mm.change_submod("Fragment Driver", "Cap broken bonds",
"Weighted Distance");
mm.change_submod("Fragment Driver", "Find broken bonds", "Broken Bonds");
mm.change_submod("Fragment Driver", "Fragment builder", "Bond-Based Fragmenter");
mm.change_submod("Fragment Driver", "Fragment builder",
"Bond-Based Fragmenter");
mm.change_submod("Fragment Driver", "Intersection finder", "Intersections");
mm.change_submod("Fragment Driver", "Molecular graph", "Nuclear Graph");
mm.change_submod("Fragment Driver", "N-mer builder", "All nmers");
mm.change_submod("FragmentedChemicalSystem Driver", "Fragmenter", "Fragment Driver");
mm.change_submod("FragmentedChemicalSystem Driver", "Fragmenter",
"Fragment Driver");
mm.change_submod("Heavy Atom Partition", "Connectivity", "Covalent Radius");
mm.change_submod("Nuclear Graph", "Connectivity", "Covalent Radius");
mm.change_submod("Nuclear Graph", "Nodes", "Heavy Atom Partition");


SECTION("huh") {
auto hello = create_mermaid_graph(mm);
std::cout << "Bro the test ran but idk if the internals ran"
Expand Down

0 comments on commit 8951fd1

Please sign in to comment.