Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface TestItemCollection

Collection of test items, found in TestItem.children and TestController.items.

Hierarchy

  • Iterable<[id: string, testItem: TestItem]>
    • TestItemCollection

Index

Properties(1)

Methods(5)

Properties(1)

Readonly size

size: number

Gets the number of items in the collection.

Methods(5)

replace

  • replace(items: readonly TestItem[]): void
  • Replaces the items stored by the collection.

    Parameters

    • items: readonly TestItem[]

      Items to store.

    Returns void

forEach

add

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

    Parameters

    Returns void

delete

  • delete(itemId: string): void
  • Removes a single test item from the collection.

    Parameters

    • itemId: string

      Item ID to delete.

    Returns void

get

  • get(itemId: string): undefined | TestItem
  • Efficiently gets a test item by ID, if it exists, in the children.

    Parameters

    • itemId: string

      Item ID to get.

    Returns undefined | TestItem

    The found item or undefined if it does not exist.

Generated by TypeDoc. Maintained by 紫升

Links: 搜外友链, 69中文网