Skip to content

Instantly share code, notes, and snippets.

View kunwardeep's full-sized avatar

Kunwardeep kunwardeep

  • Zendesk
  • melbourne
View GitHub Profile
@kunwardeep
kunwardeep / Unbuttonize Mixin.scss
Created February 28, 2025 12:05 — forked from zastrow/Unbuttonize Mixin.scss
Remove Default Button Styles
@mixin unbuttonize {
// This removes styles added by default to button elements.
// For when something should semantically be a button,
// but isn't buttony in appearance.
background-color: transparent;
border: none;
margin: 0;
padding: 0;
text-align: inherit;
font: inherit;
@kunwardeep
kunwardeep / go-table-driven-tests-parallel.md
Created October 2, 2020 06:14 — forked from posener/go-table-driven-tests-parallel.md
Be Careful with Table Driven Tests and t.Parallel()

Be Careful with Table Driven Tests and t.Parallel()

We Gophers, love table-driven-tests, it makes our unittesting structured, and makes it easy to add different test cases with ease.

Let’s create our table driven test, for convenience, I chose to use t.Log as the test function. Notice that we don't have any assertion in this test, it is not needed to for the demonstration.

func TestTLog(t *testing.T) {
	t.Parallel()