MCPcopy Create free account
hub / github.com/docker/cli / mustParseMAC

Function mustParseMAC

cli/command/container/opts_test.go:24–30  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

22)
23
24func mustParseMAC(s string) networktypes.HardwareAddr {
25 mac, err := net.ParseMAC(s)
26 if err != nil {
27 panic(err)
28 }
29 return networktypes.HardwareAddr(mac)
30}
31
32func TestValidateAttach(t *testing.T) {
33 valid := []string{

Callers 1

TestParseNetworkConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…