-
Notifications
You must be signed in to change notification settings - Fork 0
/
vim.toml
81 lines (62 loc) · 2.03 KB
/
vim.toml
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# Vim/Neovim API Type Definitions for Selene
# This file defines types and functions for Selene linting
# Base configuration
[selene]
base = "lua51" # Use Lua 5.1 as base (LuaJIT compatible)
name = "vim" # Define this as vim standard library
# Core APIs
[vim]
any = true # Allow any vim.* calls
[jit]
any = true # Allow any jit.* calls
# Test Framework Definitions
# ------------------------
# Assert Functions
[[assert.args]]
type = "bool" # First argument must be boolean
description = "Condition to assert"
[[assert.args]]
type = "string" # Optional error message
required = false
description = "Error message on failure"
[assert.is_not]
any = true # Allow any type for is_not comparison
[[assert.equals.args]]
type = "any" # Expected value
description = "Expected value"
[[assert.equals.args]]
type = "any" # Actual value
description = "Actual value"
[[assert.equals.args]]
type = "any" # Optional error message
required = false
description = "Error message on failure"
[[assert.same.args]]
type = "any" # Expected value for deep comparison
description = "Expected value"
[[assert.same.args]]
type = "any" # Actual value for deep comparison
description = "Actual value"
[[assert.truthy.args]]
type = "any" # Value to check for truthiness
description = "Value to verify"
# Test Structure
[[describe.args]]
type = "string" # Test suite description
description = "Description of the test suite"
[[describe.args]]
type = "function" # Test suite function
description = "Function containing test cases"
[[it.args]]
type = "string" # Individual test description
description = "Description of the test case"
[[it.args]]
type = "function" # Test case function
description = "Function containing test logic"
# Test Lifecycle
[[before_each.args]]
type = "function" # Setup function
description = "Function to run before each test"
[[after_each.args]]
type = "function" # Cleanup function
description = "Function to run after each test"