GoEddie / SQLCover

Apache License 2.0
63 stars 53 forks source link

Mark declare statements with values as coverable #88

Open pguyot opened 1 year ago

pguyot commented 1 year ago

Mark declare statements SQL Server reports they are run.

How to test this code:

create or alter procedure test_cover as
begin
    declare @var int
        = 0
    declare @var1 int
        = (select 1 + 2)
    declare @var2 int
    declare @var3 int,
            @var4 int = 42,
            @var5 int
end
go

Has been tested on (remove any that don't apply):