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

Fixup and enable Dummy CompatibilitySpec test #1142

Merged
merged 1 commit into from
Jul 31, 2019

Conversation

seldridge
Copy link
Member

The checks in the Dummy module inside the CompatibilitySpec were never actually running. This fixes these up to work and runs the test.

Related issue:

Type of change: bug report | other enhancement

Impact: no functional change

Development Phase: implementation

@seldridge seldridge requested a review from a team as a code owner July 31, 2019 16:39
@seldridge seldridge requested a review from ucbjrl July 31, 2019 16:40
Signed-off-by: Schuyler Eldridge <schuyler.eldridge@ibm.com>
@seldridge seldridge force-pushed the enable-dummy-compatibility-test branch from 1cdfd3c to 0997652 Compare July 31, 2019 16:40
Copy link
Contributor

@ucbjrl ucbjrl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. lgtm

@seldridge seldridge merged commit 54a58ba into master Jul 31, 2019
@edwardcwang edwardcwang deleted the enable-dummy-compatibility-test branch August 1, 2019 00:13
jackkoenig pushed a commit that referenced this pull request Feb 28, 2023
…1142)

- Provide new tools for reading in text
  - from a file
  - from a string file name
  - from a resource file
- text can be read in as
  - a single string with newlines
  - a seq of strings, one string per line
- FileUtils put in its own file
  - in same package to keep existing API the same

Hopefully this will protect users from creating resource leaks that
may explain sbt crashing.

Also simpler interface should make code more streamlined, existing
uses of io.Source seem often to be converting between text and seq
unnecessarily.

Add note of caution on requiring slash on resource readers
jackkoenig pushed a commit that referenced this pull request Feb 28, 2023
Fixes a threading bug in where lazy reading of file
caused a problem for multithreaded access to the that was read.

Changes all uses of io.Source to use new API
getText
getLines
getTextResource
getLinesResouce

Make style to only import FileUtils and not its methods
So code is more explicit as e.g. FileUtils.getText()
jackkoenig pushed a commit that referenced this pull request Feb 28, 2023
- use scala.io.Source instead of io.Source
- .toList cleaner way to force stream to be read.
- clear old commented out code in ProtoBufSpec
jackkoenig pushed a commit that referenced this pull request Feb 28, 2023
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.

2 participants