(t *testing.T)
| 532 | } |
| 533 | |
| 534 | func TestValuePtr(t *testing.T) { |
| 535 | c, _ := e.NewContext() |
| 536 | defer c.Destroy() |
| 537 | |
| 538 | val, err := NewValue(42) |
| 539 | if err != nil { |
| 540 | t.Fatalf("NewValue('%v'): %s", 42, err) |
| 541 | } |
| 542 | |
| 543 | if val.Ptr() == nil { |
| 544 | t.Errorf("Value.Ptr('%v'): Unable to create pointer from value") |
| 545 | } |
| 546 | } |
| 547 | |
| 548 | func TestValueDestroy(t *testing.T) { |
| 549 | c, _ := e.NewContext() |
nothing calls this directly
no test coverage detected