-
-
Notifications
You must be signed in to change notification settings - Fork 744
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: upgrade
Verify.SourceGenerators
and update tests (#1874)
Co-authored-by: Chris Pulman <chris.pulman@yahoo.com>
- Loading branch information
1 parent
10bd63a
commit 5df30d9
Showing
3 changed files
with
33 additions
and
13 deletions.
There are no files selected for viewing
This file contains 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
22 changes: 16 additions & 6 deletions
22
...GeneratorTests/_snapshots/InterfaceTests.NonRefitMethodShouldRaiseDiagnostic.verified.txt
This file contains 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 |
---|---|---|
@@ -1,14 +1,24 @@ | ||
{ | ||
Diagnostics: [ | ||
{ | ||
Id: RF001, | ||
Title: Refit types must have Refit HTTP method attributes, | ||
Location: /* | ||
|
||
void NonRefitMethod(); | ||
^^^^^^^^^^^^^^ | ||
} | ||
*/ | ||
: (16,5)-(16,19), | ||
Message: Method IGeneratedClient.NonRefitMethod either has no Refit HTTP method attribute or you've used something other than a string literal for the 'path' argument, | ||
Severity: Warning, | ||
WarningLevel: 1, | ||
Location: : (16,5)-(16,19), | ||
MessageFormat: Method {0}.{1} either has no Refit HTTP method attribute or you've used something other than a string literal for the 'path' argument, | ||
Message: Method IGeneratedClient.NonRefitMethod either has no Refit HTTP method attribute or you've used something other than a string literal for the 'path' argument, | ||
Category: Refit | ||
Descriptor: { | ||
Id: RF001, | ||
Title: Refit types must have Refit HTTP method attributes, | ||
MessageFormat: Method {0}.{1} either has no Refit HTTP method attribute or you've used something other than a string literal for the 'path' argument, | ||
Category: Refit, | ||
DefaultSeverity: Warning, | ||
IsEnabledByDefault: true | ||
} | ||
} | ||
] | ||
} |
22 changes: 16 additions & 6 deletions
22
Refit.GeneratorTests/_snapshots/MethodTests.MethodsWithGenericConstraints.verified.txt
This file contains 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 |
---|---|---|
@@ -1,14 +1,24 @@ | ||
{ | ||
Diagnostics: [ | ||
{ | ||
Id: RF001, | ||
Title: Refit types must have Refit HTTP method attributes, | ||
Location: /* | ||
|
||
void NonRefitMethod<T1, T2, T3, T4, T5>() | ||
^^^^^^^^^^^^^^ | ||
where T1 : class | ||
*/ | ||
: (21,5)-(21,19), | ||
Message: Method IGeneratedClient.NonRefitMethod either has no Refit HTTP method attribute or you've used something other than a string literal for the 'path' argument, | ||
Severity: Warning, | ||
WarningLevel: 1, | ||
Location: : (21,5)-(21,19), | ||
MessageFormat: Method {0}.{1} either has no Refit HTTP method attribute or you've used something other than a string literal for the 'path' argument, | ||
Message: Method IGeneratedClient.NonRefitMethod either has no Refit HTTP method attribute or you've used something other than a string literal for the 'path' argument, | ||
Category: Refit | ||
Descriptor: { | ||
Id: RF001, | ||
Title: Refit types must have Refit HTTP method attributes, | ||
MessageFormat: Method {0}.{1} either has no Refit HTTP method attribute or you've used something other than a string literal for the 'path' argument, | ||
Category: Refit, | ||
DefaultSeverity: Warning, | ||
IsEnabledByDefault: true | ||
} | ||
} | ||
] | ||
} |