• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Giorgi / DuckDB.NET / 22921736195

10 Mar 2026 07:24PM UTC coverage: 89.526% (+0.08%) from 89.45%
22921736195

push

github

Giorgi
Update global.json

1255 of 1463 branches covered (85.78%)

Branch coverage included in aggregate %.

2651 of 2900 relevant lines covered (91.41%)

447643.55 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

69.23
/DuckDB.NET.Data/DataChunk/Reader/BooleanVectorDataReader.cs
1
namespace DuckDB.NET.Data.DataChunk.Reader;
2

3
internal sealed class BooleanVectorDataReader : VectorDataReaderBase
4
{
5
    internal unsafe BooleanVectorDataReader(void* dataPointer, ulong* validityMaskPointer, DuckDBType columnType, string columnName) : base(dataPointer, validityMaskPointer, columnType, columnName)
330✔
6
    {
7
    }
330✔
8

9
    protected override T GetValidValue<T>(ulong offset, Type targetType)
10
    {
11
        if (DuckDBType != DuckDBType.Boolean)
90!
12
        {
13
            return base.GetValidValue<T>(offset, targetType);
×
14
        }
15
        
16
        var value = GetFieldData<bool>(offset);
90✔
17
        return (T)(object)value; //JIT will optimize the casts at least for not nullable T
90✔
18
    }
19

20
    internal override object GetValue(ulong offset, Type targetType)
21
    {
22
        if (DuckDBType != DuckDBType.Boolean)
1,119,669!
23
        {
24
            return base.GetValue(offset, targetType);
×
25
        }
26

27
        return GetFieldData<bool>(offset);
1,119,669✔
28
    }
29
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc