Skip to content

Commit 600ac08

Browse files
Syspretor玖宇
andauthored
fix format err (#4818)
Signed-off-by: 玖宇 <guotongyu.gty@alibaba-inc.com> Co-authored-by: 玖宇 <guotongyu.gty@alibaba-inc.com>
1 parent 3af92d5 commit 600ac08

3 files changed

Lines changed: 20 additions & 20 deletions

File tree

pkg/ddc/alluxio/load_data_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,11 @@ func TestGenerateDataLoadValueFile(t *testing.T) {
115115
//
116116
// Parameters:
117117
// - t: A testing.T object used for managing test state and reporting test failures. It provides methods like Errorf and Fail
118-
// to indicate test failures and log additional information.
118+
// to indicate test failures and log additional information.
119119
//
120120
// Returns:
121121
// - None (This is a test function, so it does not return any value. Its purpose is to validate the behavior of the code
122-
// under test and report any issues via the testing.T object.)
122+
// under test and report any issues via the testing.T object.)
123123
func Test_genDataLoadValue(t *testing.T) {
124124
testCases := map[string]struct {
125125
image string

pkg/ddc/alluxio/utils_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -816,12 +816,12 @@ func TestGetFuseDaemonsetName(t *testing.T) {
816816
// namespace, and engine name parameters to validate the resulting filesystem path.
817817
//
818818
// Parameters:
819-
// - t : *testing.T
820-
// Testing framework handle for managing test state and reporting failures
819+
// - t : *testing.T
820+
// Testing framework handle for managing test state and reporting failures
821821
//
822822
// Returns:
823-
// - None
824-
// Failures are reported through t.Errorf
823+
// - None
824+
// Failures are reported through t.Errorf
825825
func TestGetMountPoint(t *testing.T) {
826826
type fields struct {
827827
name string

pkg/ddc/juicefs/data_migrate_test.go

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -317,26 +317,26 @@ func TestJuiceFSEngine_genDataUrl_PVC(t *testing.T) {
317317
}
318318
}
319319

320-
//TestJuiceFSEngine_genDataUrl Test JuiceFSEngine's genDataUrl function
321-
//This function is used to generate URLs for data migration and supports the following two data sources:
320+
// TestJuiceFSEngine_genDataUrl Test JuiceFSEngine's genDataUrl function
321+
// This function is used to generate URLs for data migration and supports the following two data sources:
322322
// 1. ExternalStorage: Generate URLs with authentication information via URIs and encryption options.
323323
// 2. DataSet: Generate a URL in JuiceFS format from the dataset information and mount points.
324324
//
325-
//Parameter:
325+
// Parameter:
326326
// - t *testing. T: The context object of the test framework to report test results and errors.
327327
//
328-
//Test Cases:
329-
//- test-external: Tests externally stored URL generation to verify that the encryption option is correctly replaced.
330-
//- test-external-subpath: Tests the URL generation of the external storage subpath.
331-
//- test-external-subpath-file: tests the URL generation of the external storage subpath file.
332-
//- test-dataset: Test the URL generation of the dataset store to verify that the subpath is handled correctly.
333-
//- test-dataset-no-path: The URL generated by the test dataset store (no subpath).
334-
//- test-dataset-subpath-file: The URL of the test dataset storage subpath file is generated.
335-
//- test-dataset-subpath-file2: The URL of the test dataset storage subpath file (with mount point) is generated.
336-
//- test-dataset-subpath-file3: The URL of the test dataset storage subpath file (with mount points, no subpaths).
328+
// Test Cases:
329+
// - test-external: Tests externally stored URL generation to verify that the encryption option is correctly replaced.
330+
// - test-external-subpath: Tests the URL generation of the external storage subpath.
331+
// - test-external-subpath-file: tests the URL generation of the external storage subpath file.
332+
// - test-dataset: Test the URL generation of the dataset store to verify that the subpath is handled correctly.
333+
// - test-dataset-no-path: The URL generated by the test dataset store (no subpath).
334+
// - test-dataset-subpath-file: The URL of the test dataset storage subpath file is generated.
335+
// - test-dataset-subpath-file2: The URL of the test dataset storage subpath file (with mount point) is generated.
336+
// - test-dataset-subpath-file3: The URL of the test dataset storage subpath file (with mount points, no subpaths).
337337
//
338-
//Return value:
339-
//- No return value, test failure is reported via t.Errorf.
338+
// Return value:
339+
// - No return value, test failure is reported via t.Errorf.
340340
func TestJuiceFSEngine_genDataUrl(t *testing.T) {
341341
juicefsSecret := &corev1.Secret{
342342
ObjectMeta: metav1.ObjectMeta{

0 commit comments

Comments
 (0)