Skip to content

Commit

Permalink
ci: suppress uncoverable lines in StreamExtensions
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverbooth committed Apr 2, 2023
1 parent d68d893 commit 312ce72
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions X10D/src/IO/StreamExtensions.cs
Expand Up @@ -1091,8 +1091,12 @@ public static int Write(this Stream stream, float value, Endianness endianness)
}
else
{
// dotcover disable
//NOSONAR
int temp = BinaryPrimitives.ReverseEndianness(BitConverter.SingleToInt32Bits(value));
MemoryMarshal.Write(buffer, ref temp);
//NOSONAR
// dotcover enable
}
#endif
}
Expand All @@ -1108,7 +1112,11 @@ public static int Write(this Stream stream, float value, Endianness endianness)
}
else
{
// dotcover disable
//NOSONAR
MemoryMarshal.Write(buffer, ref value);
//NOSONAR
// dotcover enable
}
#endif
}
Expand Down Expand Up @@ -1166,8 +1174,12 @@ public static int Write(this Stream stream, double value, Endianness endianness)
}
else
{
// dotcover disable
//NOSONAR
long temp = BinaryPrimitives.ReverseEndianness(BitConverter.DoubleToInt64Bits(value));
MemoryMarshal.Write(buffer, ref temp);
//NOSONAR
// dotcover enable
}
#endif
}
Expand All @@ -1183,7 +1195,11 @@ public static int Write(this Stream stream, double value, Endianness endianness)
}
else
{
// dotcover disable
//NOSONAR
MemoryMarshal.Write(buffer, ref value);
//NOSONAR
// dotcover enable
}
#endif
}
Expand Down

0 comments on commit 312ce72

Please sign in to comment.