Skip to content

Fix test errors#2

Open
Y-YoL wants to merge 3 commits intomainfrom
fix-test-errors
Open

Fix test errors#2
Y-YoL wants to merge 3 commits intomainfrom
fix-test-errors

Conversation

@Y-YoL
Copy link
Copy Markdown
Owner

@Y-YoL Y-YoL commented Jul 23, 2023

No description provided.

Y-YoL added 2 commits July 23, 2023 20:48
Because the return of a local variable is treated as move
@Y-YoL
Copy link
Copy Markdown
Owner Author

Y-YoL commented Jul 23, 2023

image

Added assembly reference because MyNonCopyable type was not recognized
dotnet/roslyn#43945
@Y-YoL
Copy link
Copy Markdown
Owner Author

Y-YoL commented Jul 23, 2023

A total of 1 test files matched the specified pattern.
[xUnit.net 00:00:05.23[15](https://github.com/Y-YoL/NonCopyableAnalyzer/actions/runs/5636753360/job/15269129933#step:8:16)296]     NonCopyable.Test.NonCopyable.Return [FAIL]
  Failed NonCopyable.Test.NonCopyable.Return [482 ms]
  Error Message:
   Mismatch between number of diagnostics returned, expected "5" actual "7"

Diagnostics:
// Class1.csx(34,40): error NoCopy05: 🚫 return. 'Counter' is non-copyable.
GetBasicResultAt(34, 40, NonCopyableAnalyzer.NoCopy05),
// Class1.csx(35,46): error NoCopy05: 🚫 return. 'Counter' is non-copyable.
GetBasicResultAt(35, 46, NonCopyableAnalyzer.NoCopy05),
// Class1.csx(40,22): error NoCopy05: 🚫 return. 'Counter' is non-copyable.
GetBasicResultAt(40, 22, NonCopyableAnalyzer.NoCopy05),
// Class1.csx(53,[18](https://github.com/Y-YoL/NonCopyableAnalyzer/actions/runs/5636753360/job/15269129933#step:8:19)): error NoCopy11: 🚫 generic constraint. 'Counter' is non-copyable.
GetBasicResultAt(53, 18, NonCopyableAnalyzer.NoCopy11),
// Class1.csx(54,18): error NoCopy11: 🚫 generic constraint. 'Counter' is non-copyable.
GetBasicResultAt(54, 18, NonCopyableAnalyzer.NoCopy11),
// Class1.csx(54,53): error NoCopy05: 🚫 return. 'Counter' is non-copyable.
GetBasicResultAt(54, 53, NonCopyableAnalyzer.NoCopy05),
// Class1.csx(59,34): error NoCopy05: 🚫 return. 'Counter' is non-copyable.
GetBasicResultAt(59, 34, NonCopyableAnalyzer.NoCopy05)

@Y-YoL
Copy link
Copy Markdown
Owner Author

Y-YoL commented Jul 23, 2023

LinqのFunc<int, T>部分がFunc<int, [NonCopyable] T>となっていないのでNoCopy11が出ている?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant