ä»åã¯ãPostgreSQLã¨MySQLã使ç¨ãã¦æ¯è¼çå°è¦æ¨¡ãªãã³ããã¼ã¯è©¦é¨ãè¡ãããã®è©¦é¨å 容ã¨çµæã«ã¤ãã¦è§£èª¬ãã¾ããä»å試é¨ã«ä½¿ç¨ãããã¼ã¸ã§ã³ã¯ãPostgreSQL 8.1.3ã¨MySQL 5.0.18ã§ãããªãMySQLã«ã¤ãã¦ã¯ãMyISAMã¨ã³ã¸ã³ã¨InnoDBã¨ã³ã¸ã³ããããã«ã¤ãã¦è©¦é¨ãå®æ½ãã¾ããã
大è¦æ¨¡ãªã³ã¼ããã¼ã¹ã§ãªãã¡ã¯ã¿ãªã³ã°ãçã¨ãåããããã«codemodãæè¿èª¿ã¹ã¦ãã¦ã軽ã試è¡é¯èª¤ããã®ã§ãã®ã¡ã¢ã ããããã㨠ä¾ãã°ä»¥ä¸ã®ãããªTable Driven Testãªã³ã¼ããBEFOREããAFTERã«æ¸ãæããããã³ã¼ãéãå¤ããã人éãããã®ã¯ç¾å®çã§ã¯ãªããcodemodã§æ©æ¢°çã«æ¸ãæãããã BEFORE package main import ( "slices" "testing" ) func TestContains(t *testing.T) { type args struct { ss []string s string } tests := []struct { name string args args want bool }{ { name: "empty: false", args: args{[]string{}, ""}, wan
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}