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

Comments

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

import(
“fmt”
)

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

func Mul(x int,y int) int{
t:=Add()
return x*y*t
}

func main(){
fmt.Println(“result:”,Mul(5,5))
}

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

*

Human Verification: In order to verify that you are a human and not a spam bot, please enter the answer into the following box below based on the instructions contained in the graphic.


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

Please click below to support us on Facebook!

Send this to a friend

▷ Other ReviewsVehicles   Show Cars   Motorbikes   Scooters   Bicycles   Rims & Tires   Luxury BoatsFashion   Sunglasses   Luxury Watches   Luxury Purses   Jeans Wear   High Heels   Kinis Swimwear   Perfumes   Jewellery   Cosmetics   Shaving Helpers   Fashion Hats   Modeling TipsFooding   Chef Club   Fooding Helpers   Coktails & LiquorsSports   Sport Shoes   Fitness & Detox   Golf Gear   Racquets   Hiking & Trek Gear   Diving Equipment   Ski Gear   Snowboards   Surf Boards   Rollers & SkatesEntertainment   DIY Guides   Zik Instruments   Published Books   Music Albums   Cine Movies   Trading Helpers   Make Money   Fishing Equipment   Paintball Supplies   Trading Card Games   Telescopes   Knives   Vapes   GameplaysHigh Tech   Flat Screens   Tech Devices   Camera Lenses   Audio HiFi   Printers   USB Devices   PC Hardware   Network Gear   Cloud Servers   Software Helpers   Programmer Helpers   Mobile Apps   Hearing AidsHome   Home Furniture   Home Appliances   Tools Workshop   Beddings   Floor Layings   Barbecues   Aquarium Gear   Safe Boxes   Office Supplies   Security Locks   Cleaning ProductsKids   Baby Strollers   Child Car Seats   Remote ControlledTravel   Luggages & Bags   Airlines Seats   Hotel Rooms   Fun Trips   Cruise Ships   Mexico Tours