Skip to content

Instantly share code, notes, and snippets.

@markstgodard
markstgodard / test.md
Created April 11, 2020 16:46
example hoedown

You will then receive a JSON response with an access_token that you can then save and use for future API requests for that merchant.

{
    token_type: 'bearer',
    access_token: 'REDACTED'
}

Insights for Accelerated Software Delivery

Shipping working software, frequently and safely is critical in providing value to your customers and faster learning from end users.

How do you accelerate delivery and scale your development teams? How can you tell if the new agile practice your team adopted or your new CI server is helping improve delivery? How do you effectively measure Software Delivery?

This talk will explain how over the past year, our teams started measuring key software delivery health metrics such as:

  • 🚢 production deploys per day
package wat
// exporting only for testing
var Hello = hello
@markstgodard
markstgodard / adder.go
Last active March 21, 2019 02:40
addr.go (neg)
package adder
import "errors"
var ErrInvalidSummand = errors.New("Invalid summand")
func Add(x, y int) (int, error) {
if x <= 0 || y <= 0 {
return 0, ErrInvalidSummand
}
@markstgodard
markstgodard / addr_test.go
Created March 21, 2019 02:02
addr_test.go (ginkgo 3)
var _ = Describe("Adder", func() {
Describe("Add", func() {
Context("when summands are positive", func() {
It("adds two numbers", func() {
sum, err := Add(2, 3)
Expect(err).NotTo(HaveOccurred())
Expect(sum).To(Equal(5))
@markstgodard
markstgodard / addr_test.go
Last active March 21, 2019 17:51
addr_test.go (ginkgo 2)
package adder_test
import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
. "github.com/markstgodard/adder"
)
var _ = Describe("Adder", func() {
@markstgodard
markstgodard / addr_test.go
Created March 21, 2019 01:58
addr_test.go (ginkgo)
package adder_test
import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
. "github.com/markstgodard/adder"
)
var _ = Describe("Adder", func() {
package adder_test
import (
"testing"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
)
func TestAdder(t *testing.T) {
package adder
import "testing"
func TestAdd(t *testing.T) {
sum := Add(2, 3)
if sum != 5 {
t.Errorf("Sum, got: %d, want: %d.", sum, 5)
}
}
package adder
func Add(x, y int) int {
return x + y
}