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: udtg for checking if something is a blackboard #11

Closed
wants to merge 5 commits into from

Conversation

ddurschlag6river
Copy link
Contributor

@ddurschlag6river ddurschlag6river commented Mar 23, 2019

isBlackboard is a useful method for blueshell, which wants to know if its private state is properly initialized, to be able to check that not only is there a thing, but that thing is roughly blackboard-y. Keeping code 100% covered but also dry while dealing with non-runtime types leads to the kinda annoying array of method names.

is, as a method on Blackboard, allows checking for reference equality without making that reference available for possible accidental modification. This will be useful for tracking "is the last seen event the one I have" in blueshell. An alternative (optionally allow blackboard items to be flagged as "by reference") is possible, since we already do it (by necessity) for functions and errors, but this seems to open a smaller can of worms.

@ddurschlag6river ddurschlag6river requested review from jbcpollak and a team March 23, 2019 17:28
@codecov
Copy link

codecov bot commented Mar 23, 2019

Codecov Report

❗ No coverage uploaded for pull request base (master@596b81d). Click here to learn what that means.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##             master    #11   +/-   ##
=======================================
  Coverage          ?   100%           
=======================================
  Files             ?     10           
  Lines             ?     74           
  Branches          ?      9           
=======================================
  Hits              ?     74           
  Misses            ?      0           
  Partials          ?      0
Impacted Files Coverage Δ
lib/Blackboard.ts 100% <100%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 596b81d...2d9dd5d. Read the comment docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant