YukiHelper.Problem (YukiHelper v0.2.0) View Source

Provides the module to handle problem.

Link to this section Summary

Types

Problem No. or Problem Id.

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

Link to this function

bundle_directory(config, no)

View Source

Specs

bundle_directory(YukiHelper.Config.t(), no()) :: Path.t()

Returns the bundled directory if nessesary.

Link to this function

problem_directory(config, no)

View Source

Specs

problem_directory(YukiHelper.Config.t(), no()) :: Path.t()

Returns the directory for the problem.

Link to this function

problem_path(config, no)

View Source

Specs

problem_path(YukiHelper.Config.t(), no()) :: Path.t()

Returns the path of the directory of testcases for the problem to download.

Link to this function

source_file(config, no, opts)

View Source

Specs

source_file(YukiHelper.Config.t(), no(), keyword()) ::
  {:ok, Path.t()} | {:error, term()}

Returns the path of source file.

Link to this function

source_file!(config, no, opts)

View Source

Specs

source_file!(YukiHelper.Config.t(), no(), keyword()) :: Path.t()
Link to this function

testcase_directory(config)

View Source

Specs

testcase_directory(YukiHelper.Config.t()) :: Path.t()

Returns the root directory of testcases to donwload.