---
title: "test(completion:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrbaseclusterunittesting/test(completion:)"
---

# test(completion:)

## Declaration

```swift
func test(completion: @escaping @Sendable ((any Error)?) -> Void)
```

```swift
func test() async throws
```
