(t *testing.T)
| 451 | } |
| 452 | |
| 453 | func TestValueSlice(t *testing.T) { |
| 454 | c, _ := e.NewContext() |
| 455 | |
| 456 | for _, tt := range valueSliceTests { |
| 457 | val, err := NewValue(tt.value) |
| 458 | if err != nil { |
| 459 | t.Errorf("NewValue('%v'): %s", tt.value, err) |
| 460 | continue |
| 461 | } |
| 462 | |
| 463 | actual := val.Slice() |
| 464 | |
| 465 | if reflect.DeepEqual(actual, tt.expected) == false { |
| 466 | t.Errorf("Value.Slice('%v'): expected '%#v', actual '%#v'", tt.value, tt.expected, actual) |
| 467 | } |
| 468 | |
| 469 | val.Destroy() |
| 470 | } |
| 471 | |
| 472 | c.Destroy() |
| 473 | } |
| 474 | |
| 475 | var valueMapTests = []struct { |
| 476 | value interface{} |
nothing calls this directly
no test coverage detected