Skip to content

Commit 74f415e

Browse files
committed
updates
1 parent 2bb8b9e commit 74f415e

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

pkg/config/load_config_test.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ import (
1414

1515
// test configuration with flags --config and --config-path with multiple files and directories merge.
1616
func TestLoadConfigFromCLIArgsMultipleMerge(t *testing.T) {
17-
// create tmp folder
17+
// Create tmp folder.
1818
tmpDir := t.TempDir()
19-
// create atmos.yaml file
19+
// Create atmos.yaml file.
2020
atmosConfigFilePath := filepath.Join(tmpDir, "test-config.yaml")
2121
f, err := os.Create(atmosConfigFilePath)
2222
if err != nil {
@@ -34,7 +34,7 @@ func TestLoadConfigFromCLIArgsMultipleMerge(t *testing.T) {
3434
}
3535
}
3636
f.Close()
37-
// write another config file
37+
// Write another config file.
3838
tmpDir2 := t.TempDir()
3939
atmosConfigFilePath2 := filepath.Join(tmpDir2, "atmos.yaml")
4040
f2, err := os.Create(atmosConfigFilePath2)
@@ -68,7 +68,7 @@ func TestLoadConfigFromCLIArgsMultipleMerge(t *testing.T) {
6868
}
6969

7070
func TestLoadConfigFromCLIArgs(t *testing.T) {
71-
// Setup valid configuration for base case
71+
// Setup valid configuration for base case.
7272
validDir := t.TempDir()
7373
validConfig := `
7474
logs:
@@ -282,7 +282,7 @@ func TestValidatedIsDirs_EdgeCases(t *testing.T) {
282282
func TestMergeConfigFromDirectories_ConfigFileVariants(t *testing.T) {
283283
tmpDir := t.TempDir()
284284

285-
// Directory with atmos.yaml
285+
// Directory with atmos.yaml.
286286
dir1 := filepath.Join(tmpDir, "dir1")
287287
require.NoError(t, os.Mkdir(dir1, 0o755))
288288
require.NoError(t, os.WriteFile(
@@ -291,7 +291,7 @@ func TestMergeConfigFromDirectories_ConfigFileVariants(t *testing.T) {
291291
0o644,
292292
))
293293

294-
// Directory with .atmos.yaml
294+
// Directory with .atmos.yaml.
295295
dir2 := filepath.Join(tmpDir, "dir2")
296296
require.NoError(t, os.Mkdir(dir2, 0o755))
297297
require.NoError(t, os.WriteFile(
@@ -300,7 +300,7 @@ func TestMergeConfigFromDirectories_ConfigFileVariants(t *testing.T) {
300300
0o644,
301301
))
302302

303-
// Directory with no config file
303+
// Directory with no config file.
304304
emptyDir := filepath.Join(tmpDir, "empty")
305305
require.NoError(t, os.Mkdir(emptyDir, 0o755))
306306

@@ -356,7 +356,7 @@ func TestMergeConfigFromDirectories_ConfigFileVariants(t *testing.T) {
356356
func TestLoadConfigFromCLIArgs_ErrorPaths(t *testing.T) {
357357
tmpDir := t.TempDir()
358358

359-
// Create invalid YAML file
359+
// Create invalid YAML file.
360360
invalidYaml := filepath.Join(tmpDir, "invalid.yaml")
361361
require.NoError(t, os.WriteFile(invalidYaml, []byte("invalid: [unclosed"), 0o644))
362362

0 commit comments

Comments
 (0)