AsmGrader 0.0.0
Loading...
Searching...
No Matches
asmgrader::TestResult Struct Reference

#include <grading_session.hpp>

Public Member Functions

constexpr bool passed () const noexcept
 
constexpr int num_failed () const noexcept
 
constexpr int total_weighted () const noexcept
 
constexpr int passed_weighted () const noexcept
 

Public Attributes

std::string name
 
std::vector< RequirementResultrequirement_results
 
int num_passed {}
 
int num_total {}
 
int weight {}
 
std::optional< ContextInternalErrorerror
 

Member Function Documentation

◆ num_failed()

int asmgrader::TestResult::num_failed ( ) const
inlineconstexprnoexcept

◆ passed()

bool asmgrader::TestResult::passed ( ) const
inlineconstexprnoexcept

◆ passed_weighted()

int asmgrader::TestResult::passed_weighted ( ) const
inlineconstexprnoexcept

◆ total_weighted()

int asmgrader::TestResult::total_weighted ( ) const
inlineconstexprnoexcept

Member Data Documentation

◆ error

std::optional<ContextInternalError> asmgrader::TestResult::error

◆ name

std::string asmgrader::TestResult::name

◆ num_passed

int asmgrader::TestResult::num_passed {}

◆ num_total

int asmgrader::TestResult::num_total {}

◆ requirement_results

std::vector<RequirementResult> asmgrader::TestResult::requirement_results

◆ weight

int asmgrader::TestResult::weight {}

The documentation for this struct was generated from the following file: