refactor tests into functions #81

Closed
jlecour wants to merge 6 commits from extract_functions into cleanup
Owner

This one is … a beast !

I have :

  • extracted each test into a function with a corresponding name.
  • removed the default value for the IS_XXX variable. The first occurrence of a IS_XXX is the test itself, which makes it way easier to find.
  • organized variables
  • created a main() function

I have not :

  • changed anything in the tests logic
  • done this work for the OpenBSD section, since it's not sure that it will remain in the script.
This one is … a beast ! I have : * extracted each test into a function with a corresponding name. * removed the default value for the `IS_XXX` variable. The first occurrence of a `IS_XXX` is the test itself, which makes it way easier to find. * organized variables * created a `main()` function I have **not** : * changed anything in the tests logic * done this work for the OpenBSD section, since it's not sure that it will remain in the script.
benpro was assigned by jlecour 2019-04-04 20:53:57 +02:00
jlecour changed title from WIP: redactor tests into functions to refactor tests into functions 2019-04-04 20:54:15 +02:00
Contributor

This one is a beast but it's been a long time since I wanted to use functions!
I propose to pair review it.

This one is a beast but it's been a long time since I wanted to use functions! I propose to pair review it.
Contributor

Maybe you should redo the pull request to merge into master and not cleanup?
(Or, we will merge it manually into master).

Maybe you should redo the pull request to merge into master and not cleanup? (Or, we will merge it manually into master).
Author
Owner

@benpro I've rebased the branch on master

@benpro I've rebased the branch on master
Contributor

The rebase is not the issue. The issue is gitea wanting to compare and merge with cleanup branch.

The rebase is not the issue. The issue is gitea wanting to compare and merge with cleanup branch.
Author
Owner

I've made another PR : #83

I've made another PR : #83
jlecour closed this pull request 2019-04-05 18:35:24 +02:00
Some checks reported errors
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build encountered an error

Pull request closed

Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: evolix/evocheck#81
No description provided.