-
Notifications
You must be signed in to change notification settings - Fork 32
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
Add integration tests with skip lists for failing tests #33
Changes from 1 commit
10543fd
b80c6f9
db465ed
d8e8816
435dba9
ae74409
534d221
40ed246
71c5d5a
f9bff48
b1e2c09
70845d0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -343,8 +343,8 @@ func TestNonEquivalency(t *testing.T) { | |
}) | ||
} | ||
|
||
// Execute round trip testing for BinaryWriter. Create a BinaryWriter, using the BinaryWriter create | ||
// a TextWriter and back to BinaryWriter again. Validate that the first and last Writers are equal. | ||
// Execute round trip testing for the BinaryWriter by creating a BinaryWriter and re-encoding it to text. | ||
// From the output of the writers, construct two readers and verify the equivalency of both readers. | ||
func testBinaryRoundTrip(t *testing.T, fp string) { | ||
fileBytes := loadFile(t, fp) | ||
|
||
|
@@ -369,8 +369,8 @@ func testBinaryRoundTrip(t *testing.T, fp string) { | |
} | ||
} | ||
|
||
// Execute round trip testing for TextWriter. Create a TextWriter, using the TextWriter creat a | ||
// BinaryWriter and back to TextWriter again. Validate that the first and last Writers are equal. | ||
// Execute round trip testing for the TextWriter by creating a TextWriter and re-encoding it to binary. | ||
// From the output of the writers, construct two readers and verify the equivalency of both readers. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
func testTextRoundTrip(t *testing.T, fp string) { | ||
fileBytes := loadFile(t, fp) | ||
|
||
|
@@ -395,7 +395,7 @@ func testTextRoundTrip(t *testing.T, fp string) { | |
} | ||
} | ||
|
||
// Create a TextWriter from data parameter. Return the writer and string builder containing writer's contents | ||
// Create a TextWriter from data parameter and return the string builder containing writer's contents. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Now that we're not returning the
|
||
func encodeAsTextIon(t *testing.T, data string) strings.Builder { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Golang allows you to use the We should make sure we're only using There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed it in this test, create #48 to check throughout the project. |
||
reader := NewReader(strings.NewReader(data)) | ||
str := strings.Builder{} | ||
|
@@ -408,17 +408,17 @@ func encodeAsTextIon(t *testing.T, data string) strings.Builder { | |
return str | ||
} | ||
|
||
// Create a BinaryWriter from data parameter. Return the writer and buffer containing writer's contents | ||
// Create a BinaryWriter from data parameter and return the buffer containing writer's contents. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Now that we're not returning the
|
||
func encodeAsBinaryIon(t *testing.T, data []byte) bytes.Buffer { | ||
reader := NewReader(bytes.NewReader(data)) | ||
buf2 := bytes.Buffer{} | ||
binWriter2 := NewBinaryWriter(&buf2) | ||
writeToWriterFromReader(t, reader, binWriter2) | ||
err := binWriter2.Finish() | ||
buf := bytes.Buffer{} | ||
binWriter := NewBinaryWriter(&buf) | ||
writeToWriterFromReader(t, reader, binWriter) | ||
err := binWriter.Finish() | ||
if err != nil { | ||
t.Fatal(err) | ||
} | ||
return buf2 | ||
return buf | ||
} | ||
|
||
// Execute loading malformed Ion values into a Reader and validate the Reader. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.