Azure / Azure/gocover

block ignore annotation should be invalid when beyond its scope

Open
#69 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Go
Stars
17
Forks
17
Avg merge
1d 14h
Merged PRs (30d)
2

Description

For following case, the block ignore will fall into block in `func bar`. It should be treated as invalid annotation.

```go
func foo() {
if true {
fmt.Println()
}

fmt.Println()
//+gocover:ignore:block want to ignore here
}

func bar() {
}
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Use the Go example to reproduce how a //+gocover:ignore:block annotation is applied after its intended scope. Trace the block-ignore handling and verify that the annotation is reported as invalid rather than affecting func bar.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.