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

Add implementation of interfaces project #131

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

illicitonion
Copy link
Member

Sample answer for the interfaces project in #130

@netlify
Copy link

netlify bot commented Apr 24, 2023

Deploy Preview for cyf-systems ready!

Name Link
🔨 Latest commit 64cf92e
🔍 Latest deploy log https://app.netlify.com/sites/cyf-systems/deploys/65bd0fe71c0363000892b32c
😎 Deploy Preview https://deploy-preview-131--cyf-systems.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

"github.com/stretchr/testify/require"
)

func TestInitialBytesAreRead(t *testing.T) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

could be done as a table driven test, which is better go idiom imo

Copy link
Member Author

Choose a reason for hiding this comment

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

Could I bother you to sketch out what the per-testcase struct would look like here?

I put together my best guess in buffer_table_test.go, but it feels like quite a bit of added complexity, and like it makes the tests harder to read and interpret. Maybe I'm just not looking at it the right way, and that's not what you had in mind?

Also switch FilteringPipe tests to be table-driven.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants