module CNFManager::Points

Defined in:

tasks/utils/cnf_manager/points.cr

Class Method Summary

Class Method Detail

def self.all_task_test_names #

[View source]
def self.clean_results_yml #

[View source]
def self.create_final_results_yml_name #

[View source]
def self.create_points_yml #

[View source]
def self.emoji_by_task(task) #

[View source]
def self.failed_required_tasks #

[View source]
def self.failed_task(task, msg) #

[View source]
def self.passed_task(task, msg) #

[View source]
def self.points_yml #

[View source]
def self.skipped_task(task, msg) #

[View source]
def self.tags_by_task(task) #

[View source]
def self.task_emoji_by_task(task) #

[View source]
def self.task_points(task, status : CNFManager::ResultStatus = CNFManager::ResultStatus::Passed) #

Returns what the potential points should be (for a points type) in order to assign those points to a task


[View source]
def self.tasks_by_tag(tag) #

[View source]
def self.tasks_by_tag_intersection(tags) #

[View source]
def self.template_results_yml #

[View source]
def self.total_max_passed(tags : Array(String) = [] of String) : Int32 #

[View source]
def self.total_max_passed(tag = nil) : Int32 #

[View source]
def self.total_max_points(tags : Array(String) = [] of String) : Int32 #

[View source]
def self.total_max_points(tag = nil) : Int32 #

Calculates the total potential points.


[View source]
def self.total_passed(tags : Array(String) = [] of String) : Int32 #

[View source]
def self.total_passed(tag = nil) : Int32 #

[View source]
def self.total_points(tags : Array(String) = [] of String) : Int32 #

[View source]
def self.total_points(tag = nil) : Int32 #

Gets the total assigned points for a tag (or all total points) from the results file. Usesful for calculation categories total.


[View source]
def self.upsert_task(task, status, points, start_time) #

[View source]