From 841f2cbdb7cc7edd5054016a10daa34b583d40bc Mon Sep 17 00:00:00 2001 From: georgehao Date: Wed, 26 Feb 2025 00:48:43 +0800 Subject: [PATCH] add comment --- internal/syncx/mutex_test.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/internal/syncx/mutex_test.go b/internal/syncx/mutex_test.go index def97239a6..e3638308a7 100644 --- a/internal/syncx/mutex_test.go +++ b/internal/syncx/mutex_test.go @@ -1,3 +1,19 @@ +// Copyright 2021 The go-ethereum Authors +// This file is part of the go-ethereum library. +// +// The go-ethereum library is free software: you can redistribute it and/or modify +// it under the terms of the GNU Lesser General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// The go-ethereum library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public License +// along with the go-ethereum library. If not, see . + package syncx import ( @@ -7,6 +23,7 @@ import ( "time" ) +// TestClosableMutex tests the ClosableMutex type. func TestClosableMutex(t *testing.T) { t.Run("basic lock/unlock", func(t *testing.T) { cm := NewClosableMutex()