# Functions
CalculateResult returns a ScorecardSuiteResult with the state and Tests fields set based on a slice of ScorecardTestResults.
No description provided by the author
MergeSuites takes an array of TestSuites and combines all suites with the same name.
NewAnnotationsContainExamplesTest returns a new AnnotationsContainExamplesTest object.
NewBasicTestSuite returns a new TestSuite object containing basic, functional operator tests.
NewCheckSpecTest returns a new CheckSpecTest object.
NewCheckStatusTest returns a new CheckStatusTest object.
NewCRDsHaveResourcesTest returns a new CRDsHaveResourcesTest object.
NewCRDsHaveValidationTest returns a new CRDsHaveValidationTest object.
NewOLMTestSuite returns a new TestSuite object containing CSV best practice checks.
NewSpecDescriptorsTest returns a new SpecDescriptorsTest object.
NewStatusDescriptorsTest returns a new StatusDescriptorsTest object.
NewTestSuite returns a new TestSuite with a given name and description.
NewWritingIntoCRsHasEffectTest returns a new WritingIntoCRsHasEffectTest object.
ResultsCumulative takes multiple TestResults and returns a single TestResult with MaximumPoints equal to the sum of the MaximumPoints of the input and EarnedPoints as the sum of EarnedPoints of the input.
ResultsPassFail combines multiple test results and returns a single test results with 1 maximum point and either 0 or 1 earned points.
No description provided by the author
TestResultToScorecardTestResult is a helper function for converting from the TestResult type to the ScorecardTestResult type.
TestSuitesToScorecardOutput takes an array of test suites and generates a v1alpha1 ScorecardOutput object with the provided name, description, and log.
UpdateState updates the state of a TestResult.
UpdateSuiteStates update the state of each test in a suite and updates the count to the suite's states to match.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
AnnotationsContainExamplesTest is a scorecard test that verifies that the CSV contains examples via the alm-examples annotation.
BasicTestConfig contains all variables required by the BasicTest TestSuite.
CheckSpecTest is a scorecard test that verifies that the CR has a spec block.
CheckStatusTest is a scorecard test that verifies that the CR has a status block.
CRDsHaveResourcesTest is a scorecard test that verifies that the CSV lists used resources in its owned CRDs secyion.
CRDsHaveValidationTest is a scorecard test that verifies that all CRDs have a validation section.
OLMTestConfig contains all variables required by the OLMTest TestSuite.
SpecDescriptorsTest is a scorecard test that verifies that all spec fields have descriptors.
StatusDescriptorsTest is a scorecard test that verifies that all status fields have descriptors.
TestInfo contains information about the scorecard test.
TestResult contains a test's points, suggestions, and errors.
TestSuite contains a list of tests and results, along with the relative weights of each test.
WritingIntoCRsHasEffectTest is a scorecard test that verifies that the operator is making PUT and/or POST requests to the API server.
# Interfaces
Test provides methods for running scorecard tests.