Testing Techniques

This talk was initially presented by Andrew Gerrand at Google I/O 2014 at the Go Developer Sandbox. This recording is from the (somewhat informal) golang-syd meetup in July 2014.

The slides are available here: https://talks.golang.org/2014/testing.slide
The demo code is available here: https://github.com/golang/example


Mike Graf says:

Lol at 10:15 … Forever remembered by the internet.

pratik dhanave says:

Hi Andrew. I am beginner go programmer who is learning to write code.
How can I write test for Mul() function bellow which internally call other function. ?
any guideline largely help.

package main


func Add() int{
var n int
fmt.Println(“enter number:”)
return n

func Mul(x int,y int) int{
return x*y*t

func main(){

Adir Haleli says:

really helpful talk, thank you

vishnu karthik says:

Awesome talk Andrew

Chris Stiteler says:

Thanks, Andrew! Great talk.

JSTpacek says:

good stuff, thanks!

 Write a comment


Do you like our videos?
Do you want to see more like that?

Please click below to support us on Facebook!