Lines Matching full:bar
25 # include, bar.
29 "export { Bar } from './bar';",
37 # Included files, like bar, should not be generated.
38 assert_file_doesnt_exists("bar.ts")
41 # Generate both foo and bar with no extra arguments
42 flatc(["--ts", "foo.fbs", "bar/bar.fbs"])
45 # include, bar.
49 "export { Bar } from './bar';",
57 # Bar should also be generatd in place and exports the Bar table.
58 assert_file_and_contents("bar.ts", "export class Bar {")
65 # directory and its direct include, bar.
69 "export { Bar } from './bar/bar';",
75 # Foo, and the import of Bar should be relative to its location.
80 "import { Bar } from '../bar/bar';",
84 # Included files, like bar, should not be generated.
85 assert_file_doesnt_exists("bar.ts")
95 "export { Bar } from './bar'",
101 # Foo should be generated with an import to Bar and an export of itself.
105 "import { Bar } from './bar';",
110 # Bar should be generated with an import to Baz and an export of itself.
112 "bar.ts",
115 "export class Bar {",
132 # Should generate a single file that imports bar as a single file, and
137 "import {Bar as Bar} from './bar_generated';",
149 # Should generate a single file that imports bar as a single file, and
154 "import {Bar as Bar} from './bar_with_ns_generated';",
163 # Generate both foo and bar with the flat files option
164 flatc(["--ts", "--ts-flat-files", "foo.fbs", "bar/bar.fbs"])
166 # Should generate a single foo file that imports bar as a single file,
171 "import {Bar as Bar} from './bar_generated';",
176 # Should generate a single bar file that imports bar as a single file,
177 # and exports the Bar table.
182 "export class Bar {",
186 # The types Foo and Bar should not be generated in their own files
188 assert_file_doesnt_exists("bar.ts")
200 "export class Bar {",
205 "import {Bar as Bar}",
210 # The types Foo, Bar and Baz should not be generated in their own files.
212 assert_file_doesnt_exists("bar.ts")
233 "import {Bar as Bar}",
238 # The types Foo, Bar and Baz should not be generated in their own files.
240 assert_file_doesnt_exists("bar.ts")