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: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ lint:
$$(go env GOPATH)/bin/goimports -w .; \
fi
go vet ./...
go run golang.org/x/tools/cmd/deadcode@latest ./...
go run golang.org/x/tools/cmd/deadcode@latest -test ./...
3 changes: 0 additions & 3 deletions frontmatter.go

This file was deleted.

17 changes: 13 additions & 4 deletions integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ echo "Running deploy bootstrap"
func TestSelectorFiltering(t *testing.T) {
dirs := setupTestDirs(t)

// Create rule files with different selectors
// Create rule files with different Selectors
ruleFile1 := filepath.Join(dirs.rulesDir, "python.md")
ruleContent1 := `---
language: python
Expand Down Expand Up @@ -845,9 +845,18 @@ This is a test task.

lines = strings.Split(output, "\n")

// First line should be frontmatter delimiter
if lines[0] != "---" {
t.Errorf("expected first line to be '---', got %q", lines[0])
// Find the first non-log line (skip lines starting with "time=")
var firstContentLine string
for _, line := range lines {
if !strings.HasPrefix(line, "time=") {
firstContentLine = line
break
}
}

// First content line should be frontmatter delimiter
if firstContentLine != "---" {
t.Errorf("expected first content line to be '---', got %q", firstContentLine)
}

// Should contain task frontmatter fields
Expand Down
Loading