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

chore(cardinal): log a warning if RegisterSystems encounters a duplicate System name #411

Conversation

technicallyty
Copy link
Contributor

@technicallyty technicallyty commented Nov 9, 2023

What is the purpose of the change

isnt 100% fool-proof as systems that cant get their names through reflection won't be checked.

also renames ecs's AddSystem(s) to RegisterSystem to align naming.

Brief Changelog

Testing and Verifying

unit test in system_test.go

@technicallyty technicallyty marked this pull request as ready for review November 9, 2023 03:09
@technicallyty technicallyty requested a review from a team as a code owner November 9, 2023 03:09
@technicallyty technicallyty marked this pull request as draft November 9, 2023 03:14
cardinal/system_test.go Outdated Show resolved Hide resolved
@technicallyty technicallyty marked this pull request as ready for review November 9, 2023 20:20
Copy link

codecov bot commented Nov 9, 2023

Codecov Report

Merging #411 (5bfaebb) into main (d94a247) will increase coverage by 0.07%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #411      +/-   ##
==========================================
+ Coverage   64.63%   64.71%   +0.07%     
==========================================
  Files          82       82              
  Lines        4660     4670      +10     
==========================================
+ Hits         3012     3022      +10     
  Misses       1318     1318              
  Partials      330      330              
Files Coverage Δ
cardinal/ecs/world.go 66.02% <100.00%> (+0.66%) ⬆️
cardinal/world.go 65.83% <100.00%> (+0.21%) ⬆️

@technicallyty technicallyty changed the title refactor(cardinal): disallow RegisterSystems from registering duplicate systems refactor(cardinal): log a warning if RegisterSystems encounters a duplicate System name Nov 9, 2023
@technicallyty technicallyty changed the title refactor(cardinal): log a warning if RegisterSystems encounters a duplicate System name chore(cardinal): log a warning if RegisterSystems encounters a duplicate System name Nov 9, 2023
@technicallyty technicallyty enabled auto-merge (squash) November 13, 2023 18:55
@technicallyty technicallyty merged commit b49f762 into main Nov 13, 2023
6 checks passed
@technicallyty technicallyty deleted the tyler/world-529-make-registersystems-error-if-the-same-system-is-registered branch November 13, 2023 19:05
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.

3 participants