Skip to content

fix: lint errors

fix: lint errors #13

GitHub Actions / Go Test Results failed Jan 12, 2025 in 0s

1 passed, 3 failed and 0 skipped

Tests failed

❌ .test/reports/unit-test.xml

4 tests were completed in 2s with 1 passed, 3 failed and 0 skipped.

Test suite Passed Failed Skipped Time
github.com/zeiss/ghmd 4ms
github.com/zeiss/ghmd/cmd 4ms
github.com/zeiss/ghmd/internal/cfg 5ms
github.com/zeiss/ghmd/pkg/context 1✅ 1s
github.com/zeiss/ghmd/pkg/renderer 3❌ 15ms
github.com/zeiss/ghmd/pkg/spec 5ms

✅ github.com/zeiss/ghmd/pkg/context

✅ TestNew

❌ github.com/zeiss/ghmd/pkg/renderer

❌ TestHeader/empty_spec
	=== RUN   TestHeader/empty_spec
❌ TestHeader/spec_with_header
	=== RUN   TestHeader/spec_with_header
❌ TestHeader
	=== RUN   TestHeader

Annotations

Check failure on line 0 in .test/reports/unit-test.xml

See this annotation in the file changed.

@github-actions github-actions / Go Test Results

github.com/zeiss/ghmd/pkg/renderer ► TestHeader/empty_spec

Failed test found in:
  .test/reports/unit-test.xml
Error:
  === RUN   TestHeader/empty_spec
Raw output
=== RUN   TestHeader/empty_spec
    renderer_test.go:40: 
        	Error Trace:	/home/runner/work/ghmd/ghmd/pkg/renderer/renderer_test.go:40
        	Error:      	Not equal: 
        	            	expected: ""
        	            	actual  : "\n"
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -1 +1,2 @@
        	            	 
        	            	+
        	Test:       	TestHeader/empty_spec
--- FAIL: TestHeader/empty_spec (0.00s)

Check failure on line 0 in .test/reports/unit-test.xml

See this annotation in the file changed.

@github-actions github-actions / Go Test Results

github.com/zeiss/ghmd/pkg/renderer ► TestHeader/spec_with_header

Failed test found in:
  .test/reports/unit-test.xml
Error:
  === RUN   TestHeader/spec_with_header
Raw output
=== RUN   TestHeader/spec_with_header
    renderer_test.go:40: 
        	Error Trace:	/home/runner/work/ghmd/ghmd/pkg/renderer/renderer_test.go:40
        	Error:      	Not equal: 
        	            	expected: "# Header"
        	            	actual  : "# Header\n"
        	            	
        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -1 +1,2 @@
        	            	 # Header
        	            	+
        	Test:       	TestHeader/spec_with_header
--- FAIL: TestHeader/spec_with_header (0.00s)

Check failure on line 0 in .test/reports/unit-test.xml

See this annotation in the file changed.

@github-actions github-actions / Go Test Results

github.com/zeiss/ghmd/pkg/renderer ► TestHeader

Failed test found in:
  .test/reports/unit-test.xml
Error:
  === RUN   TestHeader
Raw output
=== RUN   TestHeader
=== PAUSE TestHeader
=== CONT  TestHeader
--- FAIL: TestHeader (0.00s)