# file_testing 3.0.2

Testing utilities for package:file.




## Installing
```
export PUB_HOSTED_URL=https://pub.mirror.p-hatan.com
flutter pub add 'file_testing:3.0.2'
```
Published: 2024-10-08T19:56:18.120971Z
Expected archive SHA-256: eb0c85fd118ddc0d41c295c09f64e0924c256b071087cdc9828d5372c80d554d

Available in cache; verification: upstream_checksum
## Direct dependencies
- test: ^1.23.1

## Package README (untrusted upstream documentation)
[![pub package](https://img.shields.io/pub/v/file_testing.svg)](https://pub.dev/packages/file_testing)
[![package publisher](https://img.shields.io/pub/publisher/file_testing.svg)](https://pub.dev/packages/file_testing/publisher)

Testing utilities intended to work with `package:file`.

## Features

This package provides a series of matchers to be used in tests that work with file
system types.

## Usage

```dart
import 'package:file/file.dart';
import 'package:file/memory.dart';
import 'package:file_testing/file_testing.dart';
import 'package:test/test.dart';

void main() {
  MemoryFileSystem fs;

  setUp(() {
    fs = MemoryFileSystem();
    fs.file('/foo').createSync();
  });

  test('some test', () {
    expectFileSystemException(
      ErrorCodes.ENOENT,
      () {
        fs.directory('').resolveSymbolicLinksSync();
      },
    );
    expect(fs.file('/path/to/file'), isFile);
    expect(fs.file('/path/to/directory'), isDirectory);
    expect(fs.file('/foo'), exists);
  });
}
```

## Changelog
## 3.0.2

* Require Dart 3.1.

## 3.0.1

* Update the pubspec repository field to reflect the new package repository.
* Require Dart 3.0.

## 3.0.0

* Migrate to null safety.

## 2.2.0

* Change dependency on `package:test_api` back to `package:test`.

## 2.1.0

* Changed dependency on `package:test` to `package:test_api`
* Bumped Dart SDK constraint to match `package:test_api`'s requirements
* Updated style to match latest lint rules from Flutter repo.

## 2.0.3

* Relaxed constraints on `package:test`

## 2.0.2

* Bumped dependency on `package:test` to version 1.0

## 2.0.1

* Bumped Dart SDK constraint to allow for Dart 2 stable

## 2.0.0

* Removed `record_replay_matchers.dart` from API

## 1.0.0

* Moved `package:file/testing.dart` library into a dedicated package so that
  libraries don't need to take on a transitive dependency on `package:test`
  in order to use `package:file`.







 
