Liking cljdoc? Tell your friends :D

dots.vscode.test-item-collection

Collection of test items, found in {@link TestItem.children } and {@link TestController.items }.

Collection of test items, found in {@link TestItem.children } and
{@link TestController.items }.
raw docstring

addcljs

(add test-item-collection item)

Adds the test item to the children. If an item with the same ID already exists, it'll be replaced.

Parameters:

  • item: TestItem - Item to add.

Returns: void

Adds the test item to the children. If an item with the same ID already
exists, it'll be replaced.

**Parameters:**
- `item`: `TestItem` - Item to add.

**Returns:** `void`
sourceraw docstring

deletecljs

(delete test-item-collection item-id)

Removes a single test item from the collection.

Parameters:

  • item-id: string - Item ID to delete.

Returns: void

Removes a single test item from the collection.

**Parameters:**
- `item-id`: `string` - Item ID to delete.

**Returns:** `void`
sourceraw docstring

for-eachcljs

(for-each test-item-collection callback)
(for-each test-item-collection callback this-arg)

Iterate over each entry in this collection.

Parameters:

  • callback: (item: TestItem, collection: TestItemCollection) => unknown - Function to execute for each entry.
  • this-arg: any - The this context used when invoking the handler function.

Returns: void

Iterate over each entry in this collection.

**Parameters:**
- `callback`: `(item: TestItem, collection: TestItemCollection) => unknown` - Function to execute for each entry.
- `this-arg`: `any` - The `this` context used when invoking the handler function.

**Returns:** `void`
sourceraw docstring

getcljs

(get test-item-collection item-id)

Efficiently gets a test item by ID, if it exists, in the children.

Parameters:

  • item-id: string - Item ID to get.

Returns: TestItem | undefined - The found item or undefined if it does not exist.

Efficiently gets a test item by ID, if it exists, in the children.

**Parameters:**
- `item-id`: `string` - Item ID to get.

**Returns:** `TestItem | undefined` - The found item or undefined if it does not exist.
sourceraw docstring

replacecljs

(replace test-item-collection items)

Replaces the items stored by the collection.

Parameters:

  • items: readonly TestItem[] - Items to store.

Returns: void

Replaces the items stored by the collection.

**Parameters:**
- `items`: `readonly TestItem[]` - Items to store.

**Returns:** `void`
sourceraw docstring

sizecljs

(size test-item-collection)

Gets the number of items in the collection.

Gets the number of items in the collection.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close