AsmGrader 0.0.0
Loading...
Searching...
No Matches
asmgrader::Assignment Class Reference

Declaration for the logic and data encapsulating a class assignment. More...

#include <assignment.hpp>

Inheritance diagram for asmgrader::Assignment:
[legend]

Public Member Functions

 Assignment (std::string_view name, std::filesystem::path exec_path) noexcept
 
void add_test (std::unique_ptr< TestBase > test) const noexcept
 
std::string_view get_name () const noexcept
 
std::filesystem::path get_exec_path () const noexcept
 
void set_exec_path (std::filesystem::path path) noexcept
 
auto get_tests () const noexcept
 
std::vector< std::string_view > get_test_names () const noexcept
 

Detailed Description

Declaration for the logic and data encapsulating a class assignment.

This includes executable path, all of the tests we want to run, and any other necessary actions.

Constructor & Destructor Documentation

◆ Assignment()

asmgrader::Assignment::Assignment ( std::string_view name,
std::filesystem::path exec_path )
noexcept

Member Function Documentation

◆ add_test()

void asmgrader::Assignment::add_test ( std::unique_ptr< TestBase > test) const
noexcept

◆ get_exec_path()

std::filesystem::path asmgrader::Assignment::get_exec_path ( ) const
inlinenoexcept

◆ get_name()

std::string_view asmgrader::Assignment::get_name ( ) const
inlinenoexcept

◆ get_test_names()

std::vector< std::string_view > asmgrader::Assignment::get_test_names ( ) const
inlinenoexcept

◆ get_tests()

auto asmgrader::Assignment::get_tests ( ) const
inlinenoexcept

◆ set_exec_path()

void asmgrader::Assignment::set_exec_path ( std::filesystem::path path)
inlinenoexcept

The documentation for this class was generated from the following files: