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

Decide how to write unit tests for writer/pango-markup #16

Open
cxw42 opened this issue Sep 27, 2020 · 0 comments
Open

Decide how to write unit tests for writer/pango-markup #16

cxw42 opened this issue Sep 27, 2020 · 0 comments
Labels
question Further information is requested

Comments

@cxw42
Copy link
Owner

cxw42 commented Sep 27, 2020

It currently has many private functions. I would like to test them since many are not trivial. I can think of several options; any suggestions? Other alternatives I haven't thought of?

  • MethodObject: refactor the complex functions into smaller classes
  • Write the test code in src/writer alongside the code being tested
  • Give more symbols package visibility and move the t/ files into the package where necessary
  • Make all those functions public (not preferred)
@cxw42 cxw42 added the question Further information is requested label Sep 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant