1
0
mirror of https://github.com/oliverbooth/X10D synced 2024-11-09 22:55:42 +00:00

ci: suppress uncoverable lines in StreamExtensions

This commit is contained in:
Oliver Booth 2023-04-02 21:03:15 +01:00
parent d68d893abd
commit 312ce725c2
No known key found for this signature in database
GPG Key ID: 20BEB9DC87961025

View File

@ -1091,8 +1091,12 @@ public static class StreamExtensions
}
else
{
// dotcover disable
//NOSONAR
int temp = BinaryPrimitives.ReverseEndianness(BitConverter.SingleToInt32Bits(value));
MemoryMarshal.Write(buffer, ref temp);
//NOSONAR
// dotcover enable
}
#endif
}
@ -1108,7 +1112,11 @@ public static class StreamExtensions
}
else
{
// dotcover disable
//NOSONAR
MemoryMarshal.Write(buffer, ref value);
//NOSONAR
// dotcover enable
}
#endif
}
@ -1166,8 +1174,12 @@ public static class StreamExtensions
}
else
{
// dotcover disable
//NOSONAR
long temp = BinaryPrimitives.ReverseEndianness(BitConverter.DoubleToInt64Bits(value));
MemoryMarshal.Write(buffer, ref temp);
//NOSONAR
// dotcover enable
}
#endif
}
@ -1183,7 +1195,11 @@ public static class StreamExtensions
}
else
{
// dotcover disable
//NOSONAR
MemoryMarshal.Write(buffer, ref value);
//NOSONAR
// dotcover enable
}
#endif
}