Skip to content

Commit

Permalink
Excluded data classes from code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcin Przywóski committed Nov 18, 2024
1 parent 79c2bfc commit 9d3109f
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ExportViewer.Core/Models/JSON/BumpedMessageMetadata.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Diagnostics.CodeAnalysis;
using System.Text.Json.Serialization;
using System.Text.Json;

namespace ExportViewer.Core.Models.JSON
{
[ExcludeFromCodeCoverage]
public class BumpedMessageMetadata
{
[JsonPropertyName("bumped_message")]
Expand Down
4 changes: 3 additions & 1 deletion ExportViewer.Core/Models/JSON/Conversation.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Text;
using System.Text.Json;
Expand All @@ -7,6 +7,7 @@
namespace ExportViewer.Core.Models.JSON
{

[ExcludeFromCodeCoverage]

Check failure on line 10 in ExportViewer.Core/Models/JSON/Conversation.cs

View workflow job for this annotation

GitHub Actions / build

The type or namespace name 'ExcludeFromCodeCoverageAttribute' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 10 in ExportViewer.Core/Models/JSON/Conversation.cs

View workflow job for this annotation

GitHub Actions / build

The type or namespace name 'ExcludeFromCodeCoverage' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 10 in ExportViewer.Core/Models/JSON/Conversation.cs

View workflow job for this annotation

GitHub Actions / build

The type or namespace name 'ExcludeFromCodeCoverageAttribute' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 10 in ExportViewer.Core/Models/JSON/Conversation.cs

View workflow job for this annotation

GitHub Actions / build

The type or namespace name 'ExcludeFromCodeCoverage' could not be found (are you missing a using directive or an assembly reference?)
public class Conversation
{
[JsonPropertyName("participants")]
Expand All @@ -32,6 +33,7 @@ public class Conversation

}

[ExcludeFromCodeCoverage]

Check failure on line 36 in ExportViewer.Core/Models/JSON/Conversation.cs

View workflow job for this annotation

GitHub Actions / build

The type or namespace name 'ExcludeFromCodeCoverageAttribute' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 36 in ExportViewer.Core/Models/JSON/Conversation.cs

View workflow job for this annotation

GitHub Actions / build

The type or namespace name 'ExcludeFromCodeCoverage' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 36 in ExportViewer.Core/Models/JSON/Conversation.cs

View workflow job for this annotation

GitHub Actions / build

The type or namespace name 'ExcludeFromCodeCoverageAttribute' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 36 in ExportViewer.Core/Models/JSON/Conversation.cs

View workflow job for this annotation

GitHub Actions / build

The type or namespace name 'ExcludeFromCodeCoverage' could not be found (are you missing a using directive or an assembly reference?)
public class MilisecondEpochConverter : JsonConverter<DateTime>
{
private static readonly DateTime _epoch = new DateTime(1970 , 1 , 1 , 0 , 0 , 0 , DateTimeKind.Local);
Expand Down
2 changes: 2 additions & 0 deletions ExportViewer.Core/Models/JSON/ConversationItem.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Text;
using System.Text.Json.Serialization;

namespace ExportViewer.Core.Models.JSON
{
[ExcludeFromCodeCoverage]
public class ConversationItem
{
[JsonConverter(typeof(MilisecondEpochConverter))]
Expand Down
2 changes: 2 additions & 0 deletions ExportViewer.Core/Models/JSON/Gif.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Text;
using System.Text.Json.Serialization;
using ExportViewer.Core.Models.Interfaces;

namespace ExportViewer.Core.Models.JSON
{
[ExcludeFromCodeCoverage]
public class Gif : IMessage
{
[JsonPropertyName("uri")]
Expand Down
2 changes: 2 additions & 0 deletions ExportViewer.Core/Models/JSON/Participant.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Text;
using System.Text.Json.Serialization;

namespace ExportViewer.Core.Models.JSON
{
[ExcludeFromCodeCoverage]
public class Participant
{
[JsonPropertyName("name")]
Expand Down
2 changes: 2 additions & 0 deletions ExportViewer.Core/Models/JSON/Photo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
using ExportViewer.Core.Models.Interfaces;
using System.Text.Json;
using System.Text.Json.Serialization;
using System.Diagnostics.CodeAnalysis;

namespace ExportViewer.Core.Models.JSON
{
[ExcludeFromCodeCoverage]
public class Photo : IMessage
{
[JsonPropertyName("uri")]
Expand Down
3 changes: 3 additions & 0 deletions ExportViewer.Core/Models/JSON/Reaction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@
using System.Collections.Generic;
using System.Text;
using System.Text.Json.Serialization;
using System.Diagnostics.CodeAnalysis;

namespace ExportViewer.Core.Models.JSON
{
[ExcludeFromCodeCoverage]
public class Reaction
{

[JsonPropertyName("reaction")]
public string ReactionType { get; set; }

Expand Down
2 changes: 2 additions & 0 deletions ExportViewer.Core/Models/JSON/Video.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Text;
using System.Text.Json.Serialization;
using ExportViewer.Core.Models.Interfaces;

namespace ExportViewer.Core.Models.JSON
{
[ExcludeFromCodeCoverage]
public class Video : IMessage
{
[JsonPropertyName("uri")]
Expand Down

0 comments on commit 9d3109f

Please sign in to comment.