Replace Stream.fromIterable([]) with Stream.empty() (#1319)

Since it's an empty stream it doesn't matter if it is a broadcast or
single-subscription stream. `Stream.empty` is more descriptive than
`Stream.fromIterable` with a hardcoded empty list.

Collapse the short-circuit checks into a single conditional.
3 files changed
tree: 2d7f212bb5cce344242082aad122347829f711d9
  1. pkgs/
  2. tool/
  3. .gitignore
  4. .travis.yml
  5. analysis_options.yaml
  6. CONTRIBUTING.md
  7. mono_repo.yaml
  8. README.md
README.md

Test Mono Repository

This repository contains packages for writing and running Dart tests.

test

A full featured packaged for writing and running Dart tests on various platforms, e.g. VM, Chrome, Node etc.

test_api

A minimal package for writing tests. This package is used by package:test and package:test_core.

test_core

A minimal package for writing and running tests. It also contains extensions for implementing a custom test runner. This package is used by package:test.