Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions pkg/ddc/efc/operations/operations_suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ import (
. "github.com/onsi/gomega"
)

// TestOperations is the entry point for the Ginkgo test suite of the operations package.
// It registers the Gomega fail handler and runs all Ginkgo specs defined in the package
// under the suite name "Operations Suite".
// This function is invoked by the Go test runner via `go test`.
//
// Parameters:
// - t (*testing.T): The standard Go testing object passed by the test runner.
Comment on lines +10 to +16

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

In Go, doc comments are written as plain text paragraphs and do not use structured parameter lists (like Javadoc or Sphinx-style Parameters: sections). Since t *testing.T is a standard testing parameter, documenting it is redundant and unidiomatic. It is recommended to simplify the comment to follow standard Go documentation practices.

Suggested change
// TestOperations is the entry point for the Ginkgo test suite of the operations package.
// It registers the Gomega fail handler and runs all Ginkgo specs defined in the package
// under the suite name "Operations Suite".
// This function is invoked by the Go test runner via `go test`.
//
// Parameters:
// - t (*testing.T): The standard Go testing object passed by the test runner.
// TestOperations is the entry point for the Ginkgo test suite of the operations package.
// It registers the Gomega fail handler and runs all Ginkgo specs defined in the package.

func TestOperations(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecs(t, "Operations Suite")
Expand Down