Skip to content
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

feat: Alias Import #20

Conversation

salujajaskeerat
Copy link
Contributor

@salujajaskeerat salujajaskeerat commented May 28, 2024

Closes #19

Changes

  • Added concept for AliasTypes.
  • MetaModelutil updated to handle the aliased types
  • added test-cases using aliased types

Related Issues

Author Checklist

  • Ensure you provide a DCO sign-off for your commits using the --signoff option of git commit.
  • Vital features and changes captured in unit and/or integration tests
  • Commits messages follow AP format
  • Extend the documentation, if necessary
  • Merging to main from fork:branchname

Signed-off-by: Jaskeerat Singh Saluja <58400083+salujajaskeerat@users.noreply.github.com>
@salujajaskeerat salujajaskeerat changed the title feat: Aias Import feat: Alias Import May 28, 2024
lib/metamodel.cto Outdated Show resolved Hide resolved
@ekarademir
Copy link
Contributor

If you put 19 after Closes # then the ticket that is being referenced will close automatically after you get this merged.

Signed-off-by: Jaskeerat Singh Saluja <58400083+salujajaskeerat@users.noreply.github.com>
lib/metamodel.cto Outdated Show resolved Hide resolved
Signed-off-by: Jaskeerat Singh Saluja <58400083+salujajaskeerat@users.noreply.github.com>
lib/metamodel.cto Outdated Show resolved Hide resolved
@ekarademir
Copy link
Contributor

Also please add tests for these, if possible.

Signed-off-by: Jaskeerat Singh Saluja <58400083+salujajaskeerat@users.noreply.github.com>
- Test cases added
- metamodelfile.js updated for aliased imports

Signed-off-by: Jaskeerat Singh Saluja <58400083+salujajaskeerat@users.noreply.github.com>
Signed-off-by: Jaskeerat Singh Saluja <58400083+salujajaskeerat@users.noreply.github.com>
test/cto/aliasedImportResolved.json Outdated Show resolved Hide resolved
test/metamodelutil.js Show resolved Hide resolved
@coveralls
Copy link

coveralls commented Jul 2, 2024

Pull Request Test Coverage Report for Build 9756365869

Details

  • 11 of 13 (84.62%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-1.2%) to 92.486%

Changes Missing Coverage Covered Lines Changed/Added Lines %
lib/metamodelutil.js 11 13 84.62%
Totals Coverage Status
Change from base Build 9131851457: -1.2%
Covered Lines: 100
Relevant Lines: 104

💛 - Coveralls

Signed-off-by: Jaskeerat Singh Saluja <58400083+salujajaskeerat@users.noreply.github.com>
@coveralls
Copy link

coveralls commented Jul 3, 2024

Pull Request Test Coverage Report for Build 9757687099

Details

  • 11 of 13 (84.62%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-1.2%) to 92.486%

Changes Missing Coverage Covered Lines Changed/Added Lines %
lib/metamodelutil.js 11 13 84.62%
Totals Coverage Status
Change from base Build 9131851457: -1.2%
Covered Lines: 100
Relevant Lines: 104

💛 - Coveralls

- metamodelutil.js code refactored
- Test cases updated to increase coverage

Signed-off-by: Jaskeerat Singh Saluja <58400083+salujajaskeerat@users.noreply.github.com>
Signed-off-by: Jaskeerat Singh Saluja <58400083+salujajaskeerat@users.noreply.github.com>
@coveralls
Copy link

coveralls commented Jul 4, 2024

Pull Request Test Coverage Report for Build 9790485204

Details

  • 4 of 4 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+1.5%) to 95.122%

Totals Coverage Status
Change from base Build 9131851457: 1.5%
Covered Lines: 95
Relevant Lines: 97

💛 - Coveralls

Signed-off-by: Jaskeerat Singh Saluja <58400083+salujajaskeerat@users.noreply.github.com>
@coveralls
Copy link

coveralls commented Jul 4, 2024

Pull Request Test Coverage Report for Build 9791020660

Details

  • 5 of 5 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+1.5%) to 95.152%

Totals Coverage Status
Change from base Build 9131851457: 1.5%
Covered Lines: 96
Relevant Lines: 98

💛 - Coveralls

@ekarademir ekarademir merged commit 9eeb019 into accordproject:main Jul 4, 2024
9 checks passed
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.

Feature: add Import Alias types to metamodel
4 participants