MCPcopy Create free account
hub / github.com/PowerShell/DSC / from

Method from

lib/dsc-lib/src/dscresources/invoke_result.rs:20–35  ·  view source on GitHub ↗
(value: TestResult)

Source from the content-addressed store, hash-verified

18
19impl From<TestResult> for GetResult {
20 fn from(value: TestResult) -> Self {
21 match value {
22 TestResult::Group(group) => {
23 let mut results = Vec::<ResourceGetResult>::new();
24 for result in group {
25 results.push(result.into());
26 }
27 GetResult::Group(results)
28 },
29 TestResult::Resource(resource) => {
30 GetResult::Resource(ResourceGetResponse {
31 actual_state: resource.actual_state
32 })
33 }
34 }
35 }
36}
37
38#[derive(Debug, Clone, PartialEq, Deserialize, Serialize, JsonSchema, DscRepoSchema)]

Callers

nothing calls this directly

Calls 3

newFunction · 0.50
ResourceClass · 0.50
is_emptyMethod · 0.45

Tested by

no test coverage detected