// Copyright 2021 The Periph Authors. All rights reserved. // Use of this source code is governed under the Apache License, Version 2.0 // that can be found in the LICENSE file. package videosink import ( "regexp" "testing" ) var boundaryRe = regexp.MustCompile(`^[a-f0-9]{60,70}$`) func TestRandomBoundary(t *testing.T) { for i := 0; i < 100; i++ { if got := randomBoundary(); !boundaryRe.MatchString(got) { t.Errorf("Boundary must match the expression %q: %s", boundaryRe.String(), got) } } }