Main Content

diagnose

Class: matlab.unittest.diagnostics.Diagnostic
Package: matlab.unittest.diagnostics

Execute diagnostic action

Syntax

diagnose(diag)

Description

diagnose(diag) executes diagnostic action for the matlab.unittest.diagnostics.Diagnostic instance, diag. The diagnose method is the means by which individual Diagnostic implementations can perform their respective diagnostic evaluations. Each concrete implementation is responsible for populating the DiagnosticText property of the Diagnostic object. Typically, text printed to the Command Window during diagnostic evaluation is not considered part of the diagnostic result and is ignored by the testing framework.

See Also