YukiHelper.Download (YukiHelper v0.2.0) View Source

Provides a module related to downloading teastcases.

Link to this section Summary

Types

Data of the response body.

Filename of the testcase.

A list of filename of the testcase.

Two types of testcase file, input file and output file.

Functions

Returns whetheir testcases have already been downloaded or not.

Downloads the specified testcase for the problem.

Gets a list of testcase for the specified problem.

Link to this section Types

Specs

data() :: String.t()

Data of the response body.

Specs

filename() :: String.t()

Filename of the testcase.

Specs

filename_list() :: [filename()]

A list of filename of the testcase.

Specs

filetype() :: :in | :out

Two types of testcase file, input file and output file.

Link to this section Functions

Link to this function

download_tastcases?(testcase_list, config, no)

View Source

Specs

download_tastcases?(
  filename_list(),
  YukiHelper.Config.t(),
  YukiHelper.Problem.no()
) :: boolean()

Returns whetheir testcases have already been downloaded or not.

Link to this function

get_testcase(config, no, filename, type, opts \\ [])

View Source

Specs

get_testcase(
  YukiHelper.Config.t(),
  YukiHelper.Problem.no(),
  filename(),
  filetype(),
  keyword()
) :: {:ok, data()} | {:error, term()}

Downloads the specified testcase for the problem.

Link to this function

get_testcase!(config, no, filename, type, opts \\ [])

View Source

Specs

Link to this function

get_testcases(config, no, opts \\ [])

View Source

Specs

get_testcases(YukiHelper.Config.t(), YukiHelper.Problem.no(), keyword()) ::
  {:ok, filename_list()} | {:error, term()}

Gets a list of testcase for the specified problem.

Link to this function

get_testcases!(config, no, opts \\ [])

View Source

Specs