YukiHelper.Download (YukiHelper v0.1.0) View Source

Provides a module related to downloading teastcases.

Link to this section Summary

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()

Specs

filename() :: String.t()

Specs

filename_list() :: [filename()]

Specs

filetype() :: :in | :out

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