---
title: "test(with:completionHandler:)"
framework: matter
role: symbol
role_heading: Instance Method
path: "matter/mtrbaseclustertestcluster/test(with:completionhandler:)"
---

# test(with:completionHandler:)

## Declaration

```swift
func test(with params: MTRTestClusterClusterTestParams?, completionHandler: @escaping @Sendable ((any Error)?) -> Void)
```

```swift
func test(with params: MTRTestClusterClusterTestParams?) async throws
```
