YukiHelper.Problem (YukiHelper v0.2.0) View Source
Provides the module to handle problem.
Link to this section Summary
Functions
Returns the bundled directory if nessesary.
Returns the directory for the problem.
Returns the path of the directory of testcases for the problem to download.
Returns the path of source file.
Returns the root directory of testcases to donwload.
Link to this section Types
Specs
no() :: pos_integer()
Problem No. or Problem Id.
Link to this section Functions
Specs
bundle_directory(YukiHelper.Config.t(), no()) :: Path.t()
Returns the bundled directory if nessesary.
Specs
problem_directory(YukiHelper.Config.t(), no()) :: Path.t()
Returns the directory for the problem.
Specs
problem_path(YukiHelper.Config.t(), no()) :: Path.t()
Returns the path of the directory of testcases for the problem to download.
Specs
source_file(YukiHelper.Config.t(), no(), keyword()) :: {:ok, Path.t()} | {:error, term()}
Returns the path of source file.
Specs
source_file!(YukiHelper.Config.t(), no(), keyword()) :: Path.t()
Specs
testcase_directory(YukiHelper.Config.t()) :: Path.t()
Returns the root directory of testcases to donwload.