(t *testing.T, size int)
| 22 | func TestPullString_Random1000(t *testing.T) { testRandomMap(t, 1000) } |
| 23 | |
| 24 | func testRandomMap(t *testing.T, size int) { |
| 25 | l := lua.NewState() |
| 26 | want := randomMap(size) |
| 27 | |
| 28 | util.DeepPush(l, want) |
| 29 | got, err := util.PullStringTable(l, 1) |
| 30 | |
| 31 | if err != nil { |
| 32 | t.Fatalf("pulling table, %v", err) |
| 33 | } |
| 34 | |
| 35 | checkMaps(t, want, got) |
| 36 | } |
| 37 | |
| 38 | func checkMaps(t *testing.T, want, got map[string]string) { |
| 39 | for wantKey, wantVal := range want { |
no test coverage detected