# `Machete.PortMatcher`
[🔗](https://github.com/mtrudel/machete/blob/main/lib/machete/matchers/port_matcher.ex#L1)

Defines a matcher that matches port values

# `opts`

```elixir
@type opts() :: []
```

Describes the arguments that can be passed to this matcher

# `t`

```elixir
@opaque t()
```

Describes an instance of this matcher

# `port`

```elixir
@spec port(opts()) :: t()
```

Matches against port values

Takes no arguments

Examples:

    iex> assert hd(Port.list()) ~> port()
    true

    iex> refute "a" ~> port()
    false

---

*Consult [api-reference.md](api-reference.md) for complete listing*
