Skip to content

Commit aa8375f

Browse files
authored
Merge pull request dart-archive/test_process#18 from dart-lang/fix_links
Update links to eliminate redirects
2 parents e23529c + c7ac71e commit aa8375f

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

pkgs/test_process/README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ This exposes a [`TestProcess`][TestProcess] class that wraps `dart:io`'s
55
line-by-line. `TestProcess` works the same as `Process` in many ways, but there
66
are a few major differences.
77

8-
[TestProcess]: https://www.dartdocs.org/documentation/test_process/latest/test_process/TestProcess-class.html
9-
[Process]: https://api.dartlang.org/stable/latest/dart-io/Process-class.html
8+
[TestProcess]: https://pub.dev/documentation/test_process/latest/test_process/TestProcess-class.html
9+
[Process]: https://api.dart.dev/stable/dart-io/Process-class.html
1010

1111
## Standard Output
1212

@@ -17,9 +17,9 @@ plain text. Instead, [`TestProcess.stdout`][stdout] and
1717
produces. What's more, they're [`StreamQueue`][StreamQueue]s, which means
1818
they provide a *pull-based API*. For example:
1919

20-
[stdout]: https://www.dartdocs.org/documentation/test_process/latest/test_process/TestProcess/stdout.html
21-
[stderr]: https://www.dartdocs.org/documentation/test_process/latest/test_process/TestProcess/stderr.html
22-
[StreamQueue]: https://www.dartdocs.org/documentation/async/latest/async/StreamQueue-class.html
20+
[stdout]: https://pub.dev/documentation/test_process/latest/test_process/TestProcess/stdout.html
21+
[stderr]: https://pub.dev/documentation/test_process/latest/test_process/TestProcess/stderr.html
22+
[StreamQueue]: https://pub.dev/documentation/async/latest/async/StreamQueue-class.html
2323

2424
```dart
2525
import 'package:test/test.dart';
@@ -80,8 +80,8 @@ produces an entirely new stream that replays the corresponding output stream
8080
from the beginning, regardless of what's already been produced by `stdout`,
8181
`stderr`, or other calls to the stream method.
8282

83-
[stdoutStream]: https://www.dartdocs.org/documentation/test_process/latest/test_process/TestProcess/stdoutStream.html
84-
[stderrStream]: https://www.dartdocs.org/documentation/test_process/latest/test_process/TestProcess/stderrStream.html
83+
[stdoutStream]: https://pub.dev/documentation/test_process/latest/test_process/TestProcess/stdoutStream.html
84+
[stderrStream]: https://pub.dev/documentation/test_process/latest/test_process/TestProcess/stderrStream.html
8585

8686
## Signals and Termination
8787

@@ -91,16 +91,16 @@ to ensure (as best as possible) that processes die without leaving behind
9191
zombies. If you want to send a particular signal (which is unsupported on
9292
Windows), you can do so by explicitly calling [`signal()`][signal].
9393

94-
[kill]: https://www.dartdocs.org/documentation/test_process/latest/test_process/TestProcess/kill.html
95-
[signal]: https://www.dartdocs.org/documentation/test_process/latest/test_process/TestProcess/signal.html
94+
[kill]: https://pub.dev/documentation/test_process/latest/test_process/TestProcess/kill.html
95+
[signal]: https://pub.dev/documentation/test_process/latest/test_process/TestProcess/signal.html
9696

9797
In addition to [`exitCode`][exitCode], which works the same as in `dart:io`,
9898
`TestProcess` also adds a new method named [`shouldExit()`][shouldExit]. This
9999
lets tests wait for a process to exit, and (if desired) assert what particular
100100
exit code it produced.
101101

102-
[exitCode]: https://www.dartdocs.org/documentation/test_process/latest/test_process/TestProcess/exitCode.html
103-
[shouldExit]: https://www.dartdocs.org/documentation/test_process/latest/test_process/TestProcess/shouldExit.html
102+
[exitCode]: https://pub.dev/documentation/test_process/latest/test_process/TestProcess/exitCode.html
103+
[shouldExit]: https://pub.dev/documentation/test_process/latest/test_process/TestProcess/shouldExit.html
104104

105105
## Debugging Output
106106

@@ -110,7 +110,7 @@ The debugging output uses a header based on the process's invocation by
110110
default, but you can pass in custom `description` parameters to
111111
[`TestProcess.start()`][start] to control the headers.
112112

113-
[start]: https://www.dartdocs.org/documentation/test_process/latest/test_process/TestProcess/start.html
113+
[start]: https://pub.dev/documentation/test_process/latest/test_process/TestProcess/start.html
114114

115115
`TestProcess` will also produce debugging output as the test runs if you pass
116116
`forwardStdio: true` to `TestProcess.start()`. This can be particularly useful

0 commit comments

Comments
 (0)