Skip to content

Commit

Permalink
Coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
dalyIsaac committed Nov 19, 2024
1 parent e7d1208 commit 32cc08b
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,28 @@ public void LoadFloatingWindowPlugin(string config, bool isYaml, IContext ctx)
""",
false
},
// YAML, invalid
{
"""
plugins:
floating_window:
bob: true
""",
true
},
// JSON, invalid
{
"""
{
"plugins": {
"floating_window": {
"bob": true
}
}
}
""",
false
},
};

[Theory, MemberAutoSubstituteData<YamlLoaderCustomization>(nameof(DisabledFloatingWindowConfig))]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,28 @@ IContext ctx
""",
false
},
// YAML, invalid
{
"""
plugins:
focus_indicator:
bob: true
""",
true
},
// JSON, invalid
{
"""
{
"plugins": {
"focus_indicator": {
"bob": true
}
}
}
""",
false
},
};

[Theory, MemberAutoSubstituteData<YamlLoaderCustomization>(nameof(DisabledFocusIndicatorConfig))]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,28 @@ public void LoadLayoutPreviewPlugin(string yaml, bool isYaml, bool isEnabled, IC
""",
false
},
// YAML, invalid
{
"""
plugins:
layout_preview:
bob: true
""",
true
},
// JSON, invalid
{
"""
{
"plugins": {
"layout_preview": {
"bob": true
}
}
}
""",
false
},
};

[Theory, MemberAutoSubstituteData<YamlLoaderCustomization>(nameof(DisabledLayoutPreviewConfig))]
Expand Down

0 comments on commit 32cc08b

Please sign in to comment.