start new:
tmux
start new with session name:
tmux new -s myname
| public class Naming{ | |
| private String name; | |
| } |
| { | |
| "supplierCode": "TH1000", | |
| "companyName": "sup_20f", | |
| "defaultSupplierType": "RT", | |
| "taxId": "tax_4de", | |
| "username": "user_da7", | |
| "defaultPaymentTerms": 30, | |
| "vatSupplier": "Y", | |
| "preferredDayForPo": "6", | |
| "deliveryDay": "5", |
| func (c *concealer) Seed() ([]byte,error){ | |
| if c.seed == nil { | |
| c.seed,err = blockRandom.Generate(SeedSize) | |
| if err != nil { | |
| fmt.Println("Handler Error") | |
| return nil,err | |
| } | |
| return c.seed,nil | |
| } | |
| return c.seed,nil |
| package main | |
| import "fmt" | |
| type Profile struct { | |
| Name string | |
| } | |
| type Handler func(*Profile) |
| *** Test Cases *** | |
| Simple JSON | |
| Set Test Variable ${data} {"first_name":"Anuchit"} | |
| Log ${data} console=True |
| *** Test Cases *** | |
| Large JSON On Robot Framework | |
| ${profile}= Catenate SEPARATOR= | |
| ... { | |
| ... "name" : "Anuchit", | |
| ... "last_name" : "Prasertsnag", | |
| ... "description" : "robot framework large json", | |
| ... "version_control" : "git", | |
| ... "url" : "https://github.com/AnuchitPrasertsang" | |
| ... } |
| " | |
| " activate pathogen | |
| " | |
| set runtimepath+=~/.vim/autoload/pathogen.vim | |
| execute pathogen#infect() | |
| filetype on | |
| filetype plugin indent on | |
| " |
| package main | |
| func getName() string { | |
| return "Anuchit Prasertsang" | |
| } | |
| var funcGetName = getName | |
| func GetStudentName() string { | |
| name := funcGetName() |
| package main | |
| import "testing" | |
| func mockGetName() string { | |
| return "Mock Get Name" | |
| } | |
| func TestMockGetStudentName(t *testing.T) { | |
| funcGetName = mockGetName |