-
Notifications
You must be signed in to change notification settings - Fork 1
Add generator runtime planning, bootstrap groundwork, settings documentation, scenario scaffold hooks, and xUnit smoke tests #161
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
cwinland
wants to merge
20
commits into
master
Choose a base branch
from
feature/122-graph-metadata-slice
base: master
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 9 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
94ca654
Add constructor planning contract for #125
cwinland 1f77bda
Add internal construction graph metadata for #122
cwinland ae4cde3
Update to awesomeAssertions
cwinland 9af1453
fix static assertion calls
cwinland 5e6b67f
Add harness bootstrap descriptor groundwork for #122
cwinland c159ed8
Add generated test package matrix rules
cwinland d94c774
Add first harness source generator slice
cwinland 563c8d8
Complete #122 parity, benchmark, and roadmap updates
cwinland 9a05c47
Merge remote-tracking branch 'origin/master' into feature/122-graph-m…
cwinland c3cd0c8
Code Review Fixes
cwinland 02c163f
Address PR review follow-up comments
cwinland cdc2cb1
Fix latest PR review findings
cwinland 46bb2d7
Dispose construction plan test harnesses
cwinland ff717b6
Add generator groundwork and document generated-test settings (#163)
cwinland 871a286
Merge branch 'master' into feature/122-graph-metadata-slice
cwinland 1f33604
Add Code review instructions
cwinland 739d2d2
Support nested generated harness targets
cwinland 45bfeb5
Refresh generated harness benchmark results
cwinland 4dd0fc9
Add generator release tracking metadata
cwinland 7d16d0f
Address remaining PR review findings
cwinland 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
34 changes: 34 additions & 0 deletions
34
FastMoq.Abstractions/Generators/FastMoqGeneratedTestTargetAttribute.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,34 @@ | ||
| namespace FastMoq.Generators | ||
| { | ||
| /// <summary> | ||
| /// Marks a partial <c>MockerTestBase<TComponent></c> test base for FastMoq's explicit compile-time harness generation path. | ||
| /// </summary> | ||
| /// <remarks> | ||
| /// <para>Apply this attribute only to partial test-base types that derive from <c>MockerTestBase<TComponent></c>.</para> | ||
| /// <para>The first generator slice keeps opt-in explicit and emits constructor-signature metadata for the selected component path rather than enabling blanket automatic generation for every eligible type in a project.</para> | ||
| /// </remarks> | ||
| [AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)] | ||
| public sealed class FastMoqGeneratedTestTargetAttribute : Attribute | ||
| { | ||
| /// <summary> | ||
| /// Initializes a new instance of the <see cref="FastMoqGeneratedTestTargetAttribute" /> class. | ||
| /// </summary> | ||
| /// <param name="componentType">The component under test that the generated harness path should target.</param> | ||
| /// <param name="constructorParameterTypes">An optional explicit constructor signature to use for the generated harness bootstrap.</param> | ||
| public FastMoqGeneratedTestTargetAttribute(Type componentType, params Type[] constructorParameterTypes) | ||
| { | ||
| ComponentType = componentType ?? throw new ArgumentNullException(nameof(componentType)); | ||
| ConstructorParameterTypes = constructorParameterTypes ?? throw new ArgumentNullException(nameof(constructorParameterTypes)); | ||
| } | ||
|
|
||
| /// <summary> | ||
| /// Gets the component under test that the generated harness path should target. | ||
| /// </summary> | ||
| public Type ComponentType { get; } | ||
|
|
||
| /// <summary> | ||
| /// Gets the optional explicit constructor signature that the generator should use. | ||
| /// </summary> | ||
| public IReadOnlyList<Type> ConstructorParameterTypes { get; } | ||
| } | ||
| } |
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.
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.