TmuxNameGenerator
Makes names no other test is using.
Source and package
- Qualified name
-
LibTmux .Testing. Tmux Name Generator - Namespace
- LibTmux.Testing
- Package
- LibTmux
- Source
- src/LibTmux.Testing/TmuxNameGenerator.cs
-
Description
Two tests that pick the same session name find each other's sessions, and the failure lands in whichever ran second. A name carries enough randomness to be unique without a round trip, and the asking variants also check with the server for the case where something outside the test took the name.
Members5 members
- CreateAvailableSessionNameAsync Makes a session name the server does not already hold.
- CreateAvailableWindowNameAsync Makes a window name the session does not already hold.
- CreateSessionName Makes a session name.
- CreateWindowName Makes a window name.
- TmuxNameGenerator Initializes a generator.