File: implicit_value_init_expr_test.go

package info (click to toggle)
c2go 0.26.11-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,052 kB
  • sloc: ansic: 6,037; sh: 82; makefile: 5
file content (26 lines) | stat: -rw-r--r-- 647 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package ast

import (
	"testing"
)

func TestImplicitValueInitExpr(t *testing.T) {
	nodes := map[string]Node{
		`0x7f8c3396fbd8 <<invalid sloc>> 'sqlite3StatValueType':'long long'`: &ImplicitValueInitExpr{
			Addr:       0x7f8c3396fbd8,
			Pos:        NewPositionFromString("<invalid sloc>"),
			Type1:      "sqlite3StatValueType",
			Type2:      "long long",
			ChildNodes: []Node{},
		},
		`0x7feecb0d6af0 <<invalid sloc>> 'char'`: &ImplicitValueInitExpr{
			Addr:       0x7feecb0d6af0,
			Pos:        NewPositionFromString("<invalid sloc>"),
			Type1:      "char",
			Type2:      "",
			ChildNodes: []Node{},
		},
	}

	runNodeTests(t, nodes)
}