---
title: Confirmation
framework: testing
role: symbol
role_heading: Structure
path: testing/confirmation
---

# Confirmation

A type that can be used to confirm that an event occurs zero or more times.

## Declaration

```swift
struct Confirmation
```

## Mentioned in

Migrating a test from XCTest Testing asynchronous code

## Topics

### Instance Methods

- [callAsFunction(count:)](testing/confirmation/callasfunction(count:).md)
- [confirm(count:)](testing/confirmation/confirm(count:).md)

## Relationships

### Conforms To

- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Confirming that asynchronous events occur

- [Testing asynchronous code](testing/testing-asynchronous-code.md)
- [confirmation(_:expectedCount:isolation:sourceLocation:_:)](testing/confirmation(_:expectedcount:isolation:sourcelocation:_:)-5mqz2.md)
- [confirmation(_:expectedCount:isolation:sourceLocation:_:)](testing/confirmation(_:expectedcount:isolation:sourcelocation:_:)-l3il.md)
