File: API.adoc

package info (click to toggle)
tig 2.6.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,188 kB
  • sloc: ansic: 36,941; sh: 10,934; makefile: 394
file content (49 lines) | stat: -rw-r--r-- 1,234 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
Testing API
-----------

file(filename, [content, ...]) [< content]::

tig_script(name, content, [content, ...])::

steps(content, [content, ...])::

stdin([content, ...]) [< content]::

tigrc([content, ...]) [< content]::

gitconfig(content, ...)::

in_work_dir(command, [args, ...])::

assert_equals(filename, [whitespace, note, ...]) < expected::

assert_not_exists(filename)::

assert_vars(count)::

test_todo([note, ...])::

test_timeout(seconds)::

require_git_version(version, [note, ...])::

test_require(git-worktree, address-sanitizer, diff-highlight, readline)::

test_setup()::

test_tig()::

	Set up a controlled environment and report the test result.
	Input to be processed via stdin is passed and stderr is captured and
	can be used for later assertions.
	Example
--------------------------------------------------------------------------------
test_tig show 1a2b3c4d5e6f
--------------------------------------------------------------------------------

test_graph() < expected::

test_case([--before=<string>, --after=<string>, --script=<string>, --args=<string>, --cwd=<string>, --tigrc=<string>, --assert-stderr=<string>, --todo=<string>, --subshell=<string>, --timeout=<string>]) < expected::

run_test_cases()::