go-mysql-test

command module
v0.0.0-...-a2c0b89 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2019 License: Unlicense Imports: 8 Imported by: 0

README

go-mysql-test

Eseguire

go run main.go

In una finestra separata eseguire

go test

Risultato atteso

=== RUN   TestMain
--- PASS: TestMain (0.00s)
    main_test.go:29: [name email phone_numbers created_at] 
    main_test.go:33: *********************** 
    main_test.go:60: name = Test1 Doe 
    main_test.go:60: email = john@doe.com 
    main_test.go:60: phone_numbers = ["555-555-555"] 
    main_test.go:60: created_at = 2019-11-17 15:52:24 
    main_test.go:33: *********************** 
    main_test.go:60: name = Test2 Doe 
    main_test.go:60: email = johnalt@doe.com 
    main_test.go:60: phone_numbers = [] 
    main_test.go:60: created_at = 2019-11-17 15:52:24 
    main_test.go:33: *********************** 
    main_test.go:60: name = Test3 Doe 
    main_test.go:60: email = jane@doe.com 
    main_test.go:60: phone_numbers = [] 
    main_test.go:60: created_at = 2019-11-17 15:52:24 
    main_test.go:33: *********************** 
    main_test.go:60: name = Test4 Bob 
    main_test.go:60: email = evilbob@gmail.com 
    main_test.go:60: phone_numbers = ["555-666-555","666-666-666"] 
    main_test.go:60: created_at = 2019-11-17 15:52:24 
PASS
ok      github.com/eturella/go-mysql-test       0.022s

Per provare l'accesso da altri linguaggi

php main_test.php

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
sql

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL