Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions pkg/cli/domain_buckets_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
)

func TestDomainBucketsAccessors(t *testing.T) {
t.Parallel()
buckets := &DomainBuckets{}

// Test initial state
Expand All @@ -34,6 +35,7 @@ func TestDomainBucketsAccessors(t *testing.T) {
}

func TestDomainBucketsWithEmbedding(t *testing.T) {
t.Parallel()
// This test verifies that types embedding DomainBuckets can access
// the domain accessor methods.
type TestAnalysis struct {
Expand Down
4 changes: 4 additions & 0 deletions pkg/cli/download_workflow_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
)

func TestDecodeBase64FileContent(t *testing.T) {
t.Parallel()
tests := []struct {
name string
input func() string // build the raw API-style input
Expand Down Expand Up @@ -66,6 +67,7 @@ func TestDecodeBase64FileContent(t *testing.T) {

for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
t.Parallel()
got, err := decodeBase64FileContent(tt.input())
if tt.wantErr {
assert.Error(t, err, "expected an error for invalid base64 input")
Expand All @@ -80,6 +82,7 @@ func TestDecodeBase64FileContent(t *testing.T) {
// TestDownloadWorkflowContentViaGitValidation ensures that downloadWorkflowContentViaGit
// rejects dangerous ref/path values before spawning any git subprocess (CWE-88).
func TestDownloadWorkflowContentViaGitValidation(t *testing.T) {
t.Parallel()
tests := []struct {
name string
repo string
Expand Down Expand Up @@ -134,6 +137,7 @@ func TestDownloadWorkflowContentViaGitValidation(t *testing.T) {
ctx := context.Background()
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
t.Parallel()
_, err := downloadWorkflowContentViaGit(ctx, tt.repo, tt.path, tt.ref, false)
require.Error(t, err, "expected validation error for invalid input")
assert.Contains(t, err.Error(), tt.errContains)
Expand Down
4 changes: 4 additions & 0 deletions pkg/cli/drain3_train_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
)

func TestTrainDrain3Weights_NoRuns(t *testing.T) {
t.Parallel()
tmpDir := t.TempDir()
err := TrainDrain3Weights(nil, tmpDir, false)
require.NoError(t, err, "should not error when no runs provided")
Expand All @@ -23,6 +24,7 @@ func TestTrainDrain3Weights_NoRuns(t *testing.T) {
}

func TestTrainDrain3Weights_WithRuns(t *testing.T) {
t.Parallel()
tmpDir := t.TempDir()

runs := []ProcessedRun{
Expand Down Expand Up @@ -70,6 +72,7 @@ func TestTrainDrain3Weights_WithRuns(t *testing.T) {
}

func TestTrainDrain3Weights_JSONStructure(t *testing.T) {
t.Parallel()
tmpDir := t.TempDir()

runs := []ProcessedRun{
Expand Down Expand Up @@ -105,6 +108,7 @@ func TestTrainDrain3Weights_JSONStructure(t *testing.T) {
}

func TestLogsCommandHasTrainFlag(t *testing.T) {
t.Parallel()
cmd := NewLogsCommand()
flag := cmd.Flags().Lookup("train")
require.NotNil(t, flag, "logs command should have --train flag")
Expand Down
Loading