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 }.
(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`
(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`
(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`
(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.
(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`
(size test-item-collection)
Gets the number of items in the collection.
Gets the number of items in the collection.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close