---
title: testing package
description: The testing package provides functions for testing Flux operations.
url: https://docs.influxdata.com/flux/v0/stdlib/internal/testing/
estimated_tokens: 219
product: Flux
version: v0
---

# testing package

-   Flux 0.182.0+
-   View InfluxDB support

The `testing` package provides functions for testing Flux operations. Import the `internal/testing` package:

```js
import "internal/testing"
```

## Functions

-   [testing.assertMatches()](/flux/v0/stdlib/internal/testing/assertmatches/)
-   [testing.shouldErrorWithCode()](/flux/v0/stdlib/internal/testing/shoulderrorwithcode/)
