-
Notifications
You must be signed in to change notification settings - Fork 16
Increase code coverage #24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
nilay-kapadia
wants to merge
26
commits into
main
Choose a base branch
from
users/nilaykapadia/code-coverage
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
0ca4bd6
Add obselete property.
nilay-kapadia 212107e
Add coverage for enum in Maps.
nilay-kapadia 03d7629
Remove unused method.
nilay-kapadia 8e2afb5
Add testModel for ObjectProperty coverage.
nilay-kapadia 1e7cbbf
Further remove unused methods.
nilay-kapadia 302cdce
Add coverage for EnumPropEntity sourcevalue.
nilay-kapadia cd0be3a
Add coverage for exceptions.
nilay-kapadia 1e9190a
Dead code deletion.
nilay-kapadia 4caa0a5
Ignore generated coverage file
jarz 65edfd0
Test for explicit @id on enum
jarz 7fe46fd
Remove dead code and update code coverage.
nilay-kapadia 1fc77d2
Exclude code coverage.
nilay-kapadia 62231d5
Fix line endings.
nilay-kapadia 3e5eeca
line changes.
nilay-kapadia 106b6d6
Merge branch 'main' into users/nilaykapadia/code-coverage
nilay-kapadia 0f92506
Attempt to fix failing tests.
nilay-kapadia f782626
Fix directory separator to be cross-platform
jarz 4ea0a23
Custom exceptions instead of generic Exceptions
jarz 5664d6b
Merge branch 'users/nilaykapadia/code-coverage' of github.com:microso…
jarz ca791ae
Address comments.
nilay-kapadia f12aa82
Merge from main.
nilay-kapadia b3d66e7
merge from main
nilay-kapadia 1ab533b
Update command tests.
nilay-kapadia d95453f
Address comments.
nilay-kapadia 597f100
Update obsolete warning to nowarn.
nilay-kapadia be8ade3
minor fix.
nilay-kapadia File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
src/Generator/Exceptions/UnsupportedContentTypeException.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// Copyright (c) Microsoft Corporation. | ||
// Licensed under the MIT License. | ||
|
||
namespace Microsoft.DigitalWorkplace.DigitalTwins.Models.Generator.Exceptions; | ||
|
||
/// <summary> | ||
/// The exception that is thrown when the Generator encounters an unsupported content type in a DTDL model. | ||
/// </summary> | ||
public class UnsupportedContentTypeException : Exception | ||
{ | ||
/// <summary> | ||
/// Gets the unsupported content type. | ||
/// </summary> | ||
[ExcludeFromCodeCoverage] | ||
public string ContentType { get; init; } | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the <see cref="UnsupportedContentTypeException"/> class. | ||
/// </summary> | ||
/// <param name="contentType">The unsupported content type.</param> | ||
public UnsupportedContentTypeException(string contentType) : base($"Unsupported content type: {contentType}") | ||
{ | ||
ContentType = contentType; | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.