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

Method resource_test

lib/dsc-lib/src/lib.rs:113–115  ·  view source on GitHub ↗

Invoke the test operation on a resource. # Arguments `resource` - The resource to invoke the operation on. `input` - The input to the operation. # Errors This function will return an error if the underlying resource fails.

(&self, resource: &DscResource, input: &str)

Source from the content-addressed store, hash-verified

111 /// This function will return an error if the underlying resource fails.
112 ///
113 pub fn resource_test(&self, resource: &DscResource, input: &str) -> Result<TestResult, DscError> {
114 resource.test(input)
115 }
116}
117
118impl Default for DscManager {

Callers

nothing calls this directly

Calls 1

testMethod · 0.80

Tested by

no test coverage detected