From a82ed71de7a35b64a1925799c12812a0163dfea3 Mon Sep 17 00:00:00 2001 From: coderwander <770732124@qq.com> Date: Tue, 16 Apr 2024 11:22:26 +0800 Subject: [PATCH] Fix struct names Signed-off-by: coderwander <770732124@qq.com> --- internal/fs/vss_windows.go | 2 +- internal/walker/walker_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/fs/vss_windows.go b/internal/fs/vss_windows.go index 8c9b8942b..d75567d25 100644 --- a/internal/fs/vss_windows.go +++ b/internal/fs/vss_windows.go @@ -190,7 +190,7 @@ func (e *vssError) Error() string { return fmt.Sprintf("VSS error: %s: %s (%#x)", e.text, e.hresult.Str(), e.hresult) } -// VssError encapsulates errors returned from calling VSS api. +// vssTextError encapsulates errors returned from calling VSS api. type vssTextError struct { text string } diff --git a/internal/walker/walker_test.go b/internal/walker/walker_test.go index 0f0009107..75f80e57f 100644 --- a/internal/walker/walker_test.go +++ b/internal/walker/walker_test.go @@ -13,7 +13,7 @@ import ( // TestTree is used to construct a list of trees for testing the walker. type TestTree map[string]interface{} -// TestNode is used to test the walker. +// TestFile is used to test the walker. type TestFile struct { Size uint64 }