code
stringlengths 26
870k
| docstring
stringlengths 1
65.6k
| func_name
stringlengths 1
194
| language
stringclasses 1
value | repo
stringlengths 8
68
| path
stringlengths 5
194
| url
stringlengths 46
254
| license
stringclasses 4
values |
---|---|---|---|---|---|---|---|
def test_eschema_syntax_link_target_type_03(self):
"""
module test {
type User {
required link todo: tuple<str, int64, float64>;
};
};
""" | module test {
type User {
required link todo: tuple<str, int64, float64>;
};
}; | test_eschema_syntax_link_target_type_03 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_link_target_type_04(self):
"""
module test {
type User {
required link todo:
tuple<str, tuple<str, array<str>>, array<float64>>;
};
};
""" | module test {
type User {
required link todo:
tuple<str, tuple<str, array<str>>, array<float64>>;
};
}; | test_eschema_syntax_link_target_type_04 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_index_01(self):
"""
module test {
type LogEntry extending OwnedObject, Text {
required link owner: User;
index on (SELECT datetime::datetime_current());
};
};
""" | module test {
type LogEntry extending OwnedObject, Text {
required link owner: User;
index on (SELECT datetime::datetime_current());
};
}; | test_eschema_syntax_index_01 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_index_02(self):
"""
module test {
abstract link foobar {
property foo: str {
title := 'Sample property';
};
index on (__subject__@foo);
};
};
""" | module test {
abstract link foobar {
property foo: str {
title := 'Sample property';
};
index on (__subject__@foo);
};
}; | test_eschema_syntax_index_02 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_index_03(self):
"""
module test {
scalar type foobar {
index prop on (__source__);
};
};
""" | module test {
scalar type foobar {
index prop on (__source__);
};
}; | test_eschema_syntax_index_03 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_index_04(self):
"""
module test {
type User {
property name: str;
index on (.name);
};
};
""" | module test {
type User {
property name: str;
index on (.name);
};
}; | test_eschema_syntax_index_04 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_index_05(self):
"""
module test {
type User {
property name: str;
index on (.name) {
annotation title := 'User name index';
};
};
};
""" | module test {
type User {
property name: str;
index on (.name) {
annotation title := 'User name index';
};
};
}; | test_eschema_syntax_index_05 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_index_06(self):
"""
module test {
type Foo {
property title: str;
index pg::gist on (.title);
};
};
""" | module test {
type Foo {
property title: str;
index pg::gist on (.title);
};
}; | test_eschema_syntax_index_06 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_index_07(self):
"""
module test {
alias eng_stop := to_json('["english_stop"]');
alias lowercase := to_json('["lowercase"]');
type Foo {
property bar: str;
property baz: str;
property foo: str;
index myindex0() on (.bar);
index myindex1(tok_filter := eng_stop ++ lowercase)
on (.baz);
index myindex2(num := 13, val := 'ab')
on (.foo);
};
};
""" | module test {
alias eng_stop := to_json('["english_stop"]');
alias lowercase := to_json('["lowercase"]');
type Foo {
property bar: str;
property baz: str;
property foo: str;
index myindex0() on (.bar);
index myindex1(tok_filter := eng_stop ++ lowercase)
on (.baz);
index myindex2(num := 13, val := 'ab')
on (.foo);
};
}; | test_eschema_syntax_index_07 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_index_08(self):
"""
module test {
abstract index myindex0;
};
""" | module test {
abstract index myindex0;
}; | test_eschema_syntax_index_08 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_index_09(self):
"""
module test {
abstract index myindex1(conf: str = 'special');
abstract index myindex2(val: int64);
abstract index myindex3(a : int64, b : str = 'default')
using myindex2(val := a),
myindex1(conf := b),
myindex1;
};
""" | module test {
abstract index myindex1(conf: str = 'special');
abstract index myindex2(val: int64);
abstract index myindex3(a : int64, b : str = 'default')
using myindex2(val := a),
myindex1(conf := b),
myindex1;
}; | test_eschema_syntax_index_09 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_index_10(self):
"""
module test {
abstract index myindex1 extending fts;
abstract index myindex2(conf := 'test') extending fts;
};
""" | module test {
abstract index myindex1 extending fts;
abstract index myindex2(conf := 'test') extending fts;
}; | test_eschema_syntax_index_10 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_ws_01(self):
"""
module test {
type LogEntry extending OwnedObject, Text {
# irrelevant comment indent
# irrelevant comment indent
# irrelevant comment indent
property start_date: datetime {
default := (
SELECT
datetime::datetime_current())
;
title := 'Start Date';
};};
};
""" | module test {
type LogEntry extending OwnedObject, Text {
# irrelevant comment indent
# irrelevant comment indent
# irrelevant comment indent
property start_date: datetime {
default := (
SELECT
datetime::datetime_current())
;
title := 'Start Date';
};};
}; | test_eschema_syntax_ws_01 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_ws_02(self):
"""
scalar type test::newScalarType extending str#:
% OK %
scalar type test::newScalarType extending str;
""" | scalar type test::newScalarType extending str#:
% OK %
scalar type test::newScalarType extending str; | test_eschema_syntax_ws_02 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_ws_03(self):
"""
scalar type test::newScalarType0 extending str#:
scalar type test::newScalarType1 extending str#:
""" | scalar type test::newScalarType0 extending str#:
scalar type test::newScalarType1 extending str#: | test_eschema_syntax_ws_03 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_scalar_01(self):
"""
module test {
scalar type issue_num_t extending std::sequence;
};
""" | module test {
scalar type issue_num_t extending std::sequence;
}; | test_eschema_syntax_scalar_01 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_scalar_02(self):
"""
module test {
scalar type issue_num_t extending int {
default := 42;
};
};
""" | module test {
scalar type issue_num_t extending int {
default := 42;
};
}; | test_eschema_syntax_scalar_02 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_scalar_04(self):
"""
module test {
scalar type basic extending int {
constraint min_value(0);
constraint max_value(123456);
delegated constraint expr on (__subject__ % 2 = 0);
title := 'Basic ScalarType';
default := 2;
};
};
""" | module test {
scalar type basic extending int {
constraint min_value(0);
constraint max_value(123456);
delegated constraint expr on (__subject__ % 2 = 0);
title := 'Basic ScalarType';
default := 2;
};
}; | test_eschema_syntax_scalar_04 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_scalar_05(self):
"""
module test {
scalar type basic extending int {
constraint expr {
prop :=
(__subject__ % 2 = 0);
};
constraint min_value(0);
constraint max_value(123456);
title := 'Basic ScalarType';
default := 2;
};
};
""" | module test {
scalar type basic extending int {
constraint expr {
prop :=
(__subject__ % 2 = 0);
};
constraint min_value(0);
constraint max_value(123456);
title := 'Basic ScalarType';
default := 2;
};
}; | test_eschema_syntax_scalar_05 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_scalar_06(self):
"""
module test {
scalar type basic extending int {
constraint min_value(0);
constraint max_value(123456);
constraint expr {
abc := (__subject__ % 2 = 0);
};
title := 'Basic ScalarType';
default := 2;
};
scalar type inherits_default extending basic;
abstract scalar type abstract_scalar extending int;
};
""" | module test {
scalar type basic extending int {
constraint min_value(0);
constraint max_value(123456);
constraint expr {
abc := (__subject__ % 2 = 0);
};
title := 'Basic ScalarType';
default := 2;
};
scalar type inherits_default extending basic;
abstract scalar type abstract_scalar extending int;
}; | test_eschema_syntax_scalar_06 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_scalar_07(self):
"""
module test {
final scalar type none;
};
""" | module test {
final scalar type none;
}; | test_eschema_syntax_scalar_07 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_scalar_08(self):
"""
module test {
scalar type basic extending int {
constraint special_constraint;
title := 'Basic ScalarType';
default := 2;
};
};
""" | module test {
scalar type basic extending int {
constraint special_constraint;
title := 'Basic ScalarType';
default := 2;
};
}; | test_eschema_syntax_scalar_08 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_scalar_09(self):
"""
module test {
scalar type special extending int {
constraint special_constraint := [42, 100, 9001];
};
};
""" | module test {
scalar type special extending int {
constraint special_constraint := [42, 100, 9001];
};
}; | test_eschema_syntax_scalar_09 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_scalar_10(self):
"""
module test {
scalar type special extending int {
constraint special_constraint {
using (__subject__ % 2 = 0);
};
title := 'Special ScalarType';
};
};
""" | module test {
scalar type special extending int {
constraint special_constraint {
using (__subject__ % 2 = 0);
};
title := 'Special ScalarType';
};
}; | test_eschema_syntax_scalar_10 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_scalar_11(self):
"""
module test {
scalar type constraint_length extending str {
constraint max_len_value(16+1, len(([1])));
};
};
""" | module test {
scalar type constraint_length extending str {
constraint max_len_value(16+1, len(([1])));
};
}; | test_eschema_syntax_scalar_11 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_scalar_12(self):
"""
module test {
scalar type constraint_length extending str {
constraint max_len_value((16+(4*2))/((4)-1), len(([1])));
};
};
""" | module test {
scalar type constraint_length extending str {
constraint max_len_value((16+(4*2))/((4)-1), len(([1])));
};
}; | test_eschema_syntax_scalar_12 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_constraint_01(self):
"""
abstract constraint test::max_value(param:anytype) on (()) {
using (__subject__ <= $param);
errmessage := 'Maximum allowed value for {subject} is {$param}.';
};
% OK %
abstract constraint test::max_value(param:anytype) on (()) {
using (__subject__ <= $param);
errmessage := 'Maximum allowed value for {subject} is {$param}.';
};
""" | abstract constraint test::max_value(param:anytype) on (()) {
using (__subject__ <= $param);
errmessage := 'Maximum allowed value for {subject} is {$param}.';
};
% OK %
abstract constraint test::max_value(param:anytype) on (()) {
using (__subject__ <= $param);
errmessage := 'Maximum allowed value for {subject} is {$param}.';
}; | test_eschema_syntax_constraint_01 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_constraint_02(self):
"""
module test {
delegated constraint length {
subject := str::len(<str>__subject__);
};
};
""" | module test {
delegated constraint length {
subject := str::len(<str>__subject__);
};
}; | test_eschema_syntax_constraint_02 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_constraint_03(self):
"""
module test {
abstract constraint max_len_value(param:anytype)
extending max, length {
errmessage :=
'{subject} must be no longer than {$param} characters.';
};
};
""" | module test {
abstract constraint max_len_value(param:anytype)
extending max, length {
errmessage :=
'{subject} must be no longer than {$param} characters.';
};
}; | test_eschema_syntax_constraint_03 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_constraint_04(self):
"""
module test {
abstract constraint max_value(param:anytype) {
using (__subject__ <= $param);
errmessage :=
'Maximum allowed value for {subject} is {$param}.';
};
abstract constraint length {
subject := str::len(<str>__subject__);
};
abstract constraint max_len_value(param:anytype)
extending max_value, length {
errmessage :=
'{subject} must be no longer than {$param} characters.';
};
};
""" | module test {
abstract constraint max_value(param:anytype) {
using (__subject__ <= $param);
errmessage :=
'Maximum allowed value for {subject} is {$param}.';
};
abstract constraint length {
subject := str::len(<str>__subject__);
};
abstract constraint max_len_value(param:anytype)
extending max_value, length {
errmessage :=
'{subject} must be no longer than {$param} characters.';
};
}; | test_eschema_syntax_constraint_04 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_constraint_05(self):
"""
module test {
abstract constraint distance {
subject :=
<float64>__subject__;
};
abstract constraint maxldistance extending max, distance {
errmessage :=
'{subject} must be no longer than {$param} meters.';
};
};
""" | module test {
abstract constraint distance {
subject :=
<float64>__subject__;
};
abstract constraint maxldistance extending max, distance {
errmessage :=
'{subject} must be no longer than {$param} meters.';
};
}; | test_eschema_syntax_constraint_05 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_constraint_06(self):
"""
module test {
abstract constraint max_len_value(param) extending max, length;
};
""" | module test {
abstract constraint max_len_value(param) extending max, length;
}; | test_eschema_syntax_constraint_06 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_constraint_07(self):
"""
module test {
scalar type special extending int {
abstract constraint length {
subject := str::len(<str>__subject__);
};
};
};
""" | module test {
scalar type special extending int {
abstract constraint length {
subject := str::len(<str>__subject__);
};
};
}; | test_eschema_syntax_constraint_07 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_constraint_08(self):
"""
module test {
abstract constraint foo(param:Foo) on (len(__subject__.bar))
extending max {
errmessage := 'bar must be no more than {$param}.';
};
};
""" | module test {
abstract constraint foo(param:Foo) on (len(__subject__.bar))
extending max {
errmessage := 'bar must be no more than {$param}.';
};
}; | test_eschema_syntax_constraint_08 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_constraint_09(self):
"""
module test {
constraint foo;
};
""" | module test {
constraint foo;
}; | test_eschema_syntax_constraint_09 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_constraint_10(self):
"""
module test {
scalar type foo extending str {
constraint maxldistance {
errmessage :=
'{__subject__} must be no longer than {$param} meters.';
};
constraint max_len_value(4);
};
};
""" | module test {
scalar type foo extending str {
constraint maxldistance {
errmessage :=
'{__subject__} must be no longer than {$param} meters.';
};
constraint max_len_value(4);
};
}; | test_eschema_syntax_constraint_10 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_property_01(self):
"""
abstract property test::foo {
title := 'Sample property';
};
""" | abstract property test::foo {
title := 'Sample property';
}; | test_eschema_syntax_property_01 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_property_02(self):
"""
module test {
abstract property bar {
extending foo;
};
};
""" | module test {
abstract property bar {
extending foo;
};
}; | test_eschema_syntax_property_02 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_property_03(self):
"""
module test {
abstract property bar {
extending foo;
title := 'Another property';
};
};
""" | module test {
abstract property bar {
extending foo;
title := 'Another property';
};
}; | test_eschema_syntax_property_03 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_property_04(self):
"""
module test {
abstract property foo {
title := 'Sample property';
};
abstract property bar {
extending foo;
title := 'Another property';
};
};
""" | module test {
abstract property foo {
title := 'Sample property';
};
abstract property bar {
extending foo;
title := 'Another property';
};
}; | test_eschema_syntax_property_04 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_property_05(self):
"""
module test {
property foo;
};
""" | module test {
property foo;
}; | test_eschema_syntax_property_05 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_property_06(self):
"""
module test {
abstract property union {
extending except;
};
};
""" | module test {
abstract property union {
extending except;
};
}; | test_eschema_syntax_property_06 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_property_07(self):
"""
module test {
abstract property foo {
extending bar;
};
};
""" | module test {
abstract property foo {
extending bar;
};
}; | test_eschema_syntax_property_07 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_property_08(self):
"""
module test {
type foo {
required property bar: str {
extending baz;
};
};
};
""" | module test {
type foo {
required property bar: str {
extending baz;
};
};
}; | test_eschema_syntax_property_08 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_property_09(self):
"""
module test {
type foo {
optional property bar: str {
extending baz;
};
};
};
""" | module test {
type foo {
optional property bar: str {
extending baz;
};
};
}; | test_eschema_syntax_property_09 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_property_10(self):
"""
module test {
type foo {
property bar: str {
extending baz;
};
};
};
""" | module test {
type foo {
property bar: str {
extending baz;
};
};
}; | test_eschema_syntax_property_10 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_property_11(self):
"""
module test {
type foo {
bar: str {
extending baz;
};
};
};
""" | module test {
type foo {
bar: str {
extending baz;
};
};
}; | test_eschema_syntax_property_11 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_property_12(self):
"""
module test {
abstract property foo extending bar {
extending bar;
}
}
""" | module test {
abstract property foo extending bar {
extending bar;
}
} | test_eschema_syntax_property_12 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_link_01(self):
"""
module test {
abstract link coollink;
};
""" | module test {
abstract link coollink;
}; | test_eschema_syntax_link_01 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_link_02(self):
"""
module test {
abstract link coollink {
extending boringlink;
};
};
""" | module test {
abstract link coollink {
extending boringlink;
};
}; | test_eschema_syntax_link_02 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_link_03(self):
"""
module test {
abstract link coollink {
property foo: int64;
};
};
""" | module test {
abstract link coollink {
property foo: int64;
};
}; | test_eschema_syntax_link_03 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_link_04(self):
"""
abstract link test::coollink {
property foo: int64;
property bar: int64;
constraint expr {
using (self.foo = self.bar);
};
}; """ | abstract link test::coollink {
property foo: int64;
property bar: int64;
constraint expr {
using (self.foo = self.bar);
};
}; | test_eschema_syntax_link_04 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_link_05(self):
"""
module test {
abstract property foo {
title := 'Sample property';
};
abstract property bar {
extending foo;
title := 'Another property';
};
abstract link coollink {
property foo: int64 {
constraint min_value(0);
constraint max_value(123456);
constraint expr on (__subject__ % 2 = 0) {
title := 'aaa';
};
default := 2;
};
property bar: int64;
constraint expr on (self.foo = self.bar);
};
};
""" | module test {
abstract property foo {
title := 'Sample property';
};
abstract property bar {
extending foo;
title := 'Another property';
};
abstract link coollink {
property foo: int64 {
constraint min_value(0);
constraint max_value(123456);
constraint expr on (__subject__ % 2 = 0) {
title := 'aaa';
};
default := 2;
};
property bar: int64;
constraint expr on (self.foo = self.bar);
};
}; | test_eschema_syntax_link_05 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_link_06(self):
"""
module test {
abstract link coollink {
required property foo: int64;
};
};
""" | module test {
abstract link coollink {
required property foo: int64;
};
}; | test_eschema_syntax_link_06 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_link_07(self):
"""
module test {
abstract link time_estimate {
property unit: str {
constraint my_constraint(0);
};
};
};
""" | module test {
abstract link time_estimate {
property unit: str {
constraint my_constraint(0);
};
};
}; | test_eschema_syntax_link_07 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_link_08(self):
"""
module test {
abstract link time_estimate {
property unit: str {
constraint my_constraint(0, <str>(42^2));
};
};
};
""" | module test {
abstract link time_estimate {
property unit: str {
constraint my_constraint(0, <str>(42^2));
};
};
}; | test_eschema_syntax_link_08 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_link_09(self):
"""
module test {
abstract link time_estimate {
property unit: str{
constraint my_constraint(')', `)`($$)$$));
};
};
};
% OK %
module test {
abstract link time_estimate {
property unit: str{
constraint my_constraint(')', `)`(')'));
};
};
};
""" | module test {
abstract link time_estimate {
property unit: str{
constraint my_constraint(')', `)`($$)$$));
};
};
};
% OK %
module test {
abstract link time_estimate {
property unit: str{
constraint my_constraint(')', `)`(')'));
};
};
}; | test_eschema_syntax_link_09 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_link_10(self):
"""
module test {
abstract link coollink;
};
""" | module test {
abstract link coollink;
}; | test_eschema_syntax_link_10 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_link_11(self):
"""
module test {
link foo;
};
""" | module test {
link foo;
}; | test_eschema_syntax_link_11 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_link_12(self):
"""
module test {
type Foo {
link mod::name to std::str;
}
};
""" | module test {
type Foo {
link mod::name to std::str;
}
}; | test_eschema_syntax_link_12 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_link_13(self):
"""
module test {
abstract link union {
extending except;
};
};
""" | module test {
abstract link union {
extending except;
};
}; | test_eschema_syntax_link_13 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_link_14(self):
"""
module test {
abstract link union {
extending intersect;
property except: str;
};
};
""" | module test {
abstract link union {
extending intersect;
property except: str;
};
}; | test_eschema_syntax_link_14 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_link_15(self):
"""
module test {
abstract link foo {
extending bar;
};
};
""" | module test {
abstract link foo {
extending bar;
};
}; | test_eschema_syntax_link_15 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_link_16(self):
"""
module test {
type foo {
required link bar: test::foo {
extending baz;
};
};
};
""" | module test {
type foo {
required link bar: test::foo {
extending baz;
};
};
}; | test_eschema_syntax_link_16 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_link_17(self):
"""
module test {
type foo {
optional link bar: test::foo {
extending baz;
};
};
};
""" | module test {
type foo {
optional link bar: test::foo {
extending baz;
};
};
}; | test_eschema_syntax_link_17 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_link_18(self):
"""
module test {
type foo {
link bar: test::foo {
extending baz;
};
};
};
""" | module test {
type foo {
link bar: test::foo {
extending baz;
};
};
}; | test_eschema_syntax_link_18 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_function_01(self):
"""
module test {
function len() -> std::int64
using sql function 'length';
};
""" | module test {
function len() -> std::int64
using sql function 'length';
}; | test_eschema_syntax_function_01 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_function_04(self):
"""
module test {
function myfunc(arg1: str, arg2: str = 'DEFAULT',
variadic arg3: std::int64) -> set of int {
annotation description := 'myfunc sample';
using sql
$$SELECT blarg;$$;
};
};
""" | module test {
function myfunc(arg1: str, arg2: str = 'DEFAULT',
variadic arg3: std::int64) -> set of int {
annotation description := 'myfunc sample';
using sql
$$SELECT blarg;$$;
};
}; | test_eschema_syntax_function_04 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_function_05(self):
"""
module test {
function myfunc(arg1: str,
arg2: str = 'DEFAULT',
variadic arg3: std::int64,
named only arg4: std::int64,
named only arg5: std::int64) -> set of int
using (
SELECT blarg
);
};
""" | module test {
function myfunc(arg1: str,
arg2: str = 'DEFAULT',
variadic arg3: std::int64,
named only arg4: std::int64,
named only arg5: std::int64) -> set of int
using (
SELECT blarg
);
}; | test_eschema_syntax_function_05 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_function_06(self):
"""
module test {
function some_func(foo: std::int64 = 42) -> std::str {
initial_value := 'bad';
using (
SELECT 'life'
);
};
};
""" | module test {
function some_func(foo: std::int64 = 42) -> std::str {
initial_value := 'bad';
using (
SELECT 'life'
);
};
}; | test_eschema_syntax_function_06 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_function_07(self):
"""
module test {
function some_func(foo: std::int64 = bar(42)) -> std::str
using sql function 'some_other_func';
};
""" | module test {
function some_func(foo: std::int64 = bar(42)) -> std::str
using sql function 'some_other_func';
}; | test_eschema_syntax_function_07 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_function_08(self):
"""
module test {
function some_func(foo: str = ')') -> std::str
using sql function 'some_other_func';
};
""" | module test {
function some_func(foo: str = ')') -> std::str
using sql function 'some_other_func';
}; | test_eschema_syntax_function_08 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_function_09(self):
"""
module test {
function some_func(foo: str = $$)$$) -> std::str
using sql function 'some_other_func';
};
% OK %
module test {
function some_func(foo: str = ')') -> std::str
using sql function 'some_other_func';
};
""" | module test {
function some_func(foo: str = $$)$$) -> std::str
using sql function 'some_other_func';
};
% OK %
module test {
function some_func(foo: str = ')') -> std::str
using sql function 'some_other_func';
}; | test_eschema_syntax_function_09 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_function_10(self):
"""
module test {
function some_func(foo: str = $a1$)$a1$) -> std::str
using sql function 'some_other_func';
};
% OK %
module test {
function some_func(foo: str = ')') -> std::str
using sql function 'some_other_func';
};
""" | module test {
function some_func(foo: str = $a1$)$a1$) -> std::str
using sql function 'some_other_func';
};
% OK %
module test {
function some_func(foo: str = ')') -> std::str
using sql function 'some_other_func';
}; | test_eschema_syntax_function_10 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_function_11(self):
"""
module test {
function some_func(`(`: str = ')') -> std::str
using sql function 'some_other_func';
};
""" | module test {
function some_func(`(`: str = ')') -> std::str
using sql function 'some_other_func';
}; | test_eschema_syntax_function_11 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_function_12(self):
"""
module test {
function some_func($`(`: str = () ) -> std::str {
using edgeql function 'some_other_func';
}
};
""" | module test {
function some_func($`(`: str = () ) -> std::str {
using edgeql function 'some_other_func';
}
}; | test_eschema_syntax_function_12 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_function_15(self):
"""
module test {
function foo() -> tuple<
str,
array<tuple<int, str>>
>
using sql function 'some_other_func';
};
""" | module test {
function foo() -> tuple<
str,
array<tuple<int, str>>
>
using sql function 'some_other_func';
}; | test_eschema_syntax_function_15 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_function_16(self):
"""
module test {
function foo() -> tuple<
str,
array<tuple<int, `Foo:>`>>
>
using sql function 'some_other_func';
};
""" | module test {
function foo() -> tuple<
str,
array<tuple<int, `Foo:>`>>
>
using sql function 'some_other_func';
}; | test_eschema_syntax_function_16 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_function_17(self):
"""
module test {
function foo() -> tuple<
str,
array<tuple<int, Foo>>>
> {
using sql function 'some_other_func';
};
};
""" | module test {
function foo() -> tuple<
str,
array<tuple<int, Foo>>>
> {
using sql function 'some_other_func';
};
}; | test_eschema_syntax_function_17 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_function_18(self):
"""
module test {
function len1() -> std::int64
using sql function 'length1';
function len2() -> std::int64
using sql function 'length2';
function len3() -> std::int64
using sql function 'length3';
function len4() -> std::int64
using sql function 'length4';
}
% OK %
module test {
function len1() -> std::int64
using SQL function 'length1';
function len2() -> std::int64
using SQL function 'length2';
function len3() -> std::int64
using SQL function 'length3';
function len4() -> std::int64
using SQL function 'length4';
};
""" | module test {
function len1() -> std::int64
using sql function 'length1';
function len2() -> std::int64
using sql function 'length2';
function len3() -> std::int64
using sql function 'length3';
function len4() -> std::int64
using sql function 'length4';
}
% OK %
module test {
function len1() -> std::int64
using SQL function 'length1';
function len2() -> std::int64
using SQL function 'length2';
function len3() -> std::int64
using SQL function 'length3';
function len4() -> std::int64
using SQL function 'length4';
}; | test_eschema_syntax_function_18 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_function_19(self):
"""
module test {
function len1() -> std::int64 {
using SQL function 'length1'
}
function len2() -> std::int64 {
using SQL function 'length2'
}
function len3() -> std::int64 {
using SQL function 'length3'
}
function len4() -> std::int64 {
using SQL function 'length4'
}
}
% OK %
module test {
function len1() -> std::int64
using SQL function 'length1';
function len2() -> std::int64
using SQL function 'length2';
function len3() -> std::int64
using SQL function 'length3';
function len4() -> std::int64
using SQL function 'length4';
};
""" | module test {
function len1() -> std::int64 {
using SQL function 'length1'
}
function len2() -> std::int64 {
using SQL function 'length2'
}
function len3() -> std::int64 {
using SQL function 'length3'
}
function len4() -> std::int64 {
using SQL function 'length4'
}
}
% OK %
module test {
function len1() -> std::int64
using SQL function 'length1';
function len2() -> std::int64
using SQL function 'length2';
function len3() -> std::int64
using SQL function 'length3';
function len4() -> std::int64
using SQL function 'length4';
}; | test_eschema_syntax_function_19 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_function_20(self):
"""
module test {
function len1() -> std::int64 {
using SQL function 'length1'
}
function len2() -> std::int64
using SQL function 'length2';
function len3() -> std::int64 {
using SQL function 'length3'
}
function len4() -> std::int64
using SQL function 'length4';
}
% OK %
module test {
function len1() -> std::int64
using SQL function 'length1';
function len2() -> std::int64
using SQL function 'length2';
function len3() -> std::int64
using SQL function 'length3';
function len4() -> std::int64
using SQL function 'length4';
};
""" | module test {
function len1() -> std::int64 {
using SQL function 'length1'
}
function len2() -> std::int64
using SQL function 'length2';
function len3() -> std::int64 {
using SQL function 'length3'
}
function len4() -> std::int64
using SQL function 'length4';
}
% OK %
module test {
function len1() -> std::int64
using SQL function 'length1';
function len2() -> std::int64
using SQL function 'length2';
function len3() -> std::int64
using SQL function 'length3';
function len4() -> std::int64
using SQL function 'length4';
}; | test_eschema_syntax_function_20 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_function_21(self):
"""
module test {
function len1(a: str b: str) -> std::str {
using SQL function 'length1'
}
""" | module test {
function len1(a: str b: str) -> std::str {
using SQL function 'length1'
} | test_eschema_syntax_function_21 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_function_22(self):
"""
module test {
function some_func(a: str) -> std::str {
volatility := 'Immutable';
using sql function 'some_other_func';
};
};
""" | module test {
function some_func(a: str) -> std::str {
volatility := 'Immutable';
using sql function 'some_other_func';
};
}; | test_eschema_syntax_function_22 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_alias_01(self):
"""
module test {
alias FooBaz {
annotation description := 'Special Foo';
using (SELECT Foo FILTER Foo.bar = 'baz');
};
};
""" | module test {
alias FooBaz {
annotation description := 'Special Foo';
using (SELECT Foo FILTER Foo.bar = 'baz');
};
}; | test_eschema_syntax_alias_01 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_alias_02(self):
"""
module test {
alias FooBaz {
using (
SELECT Foo
FILTER Foo.bar = 'baz'
);
};
}
% OK %
module test {
alias FooBaz := (
SELECT Foo
FILTER Foo.bar = 'baz'
);
};
""" | module test {
alias FooBaz {
using (
SELECT Foo
FILTER Foo.bar = 'baz'
);
};
}
% OK %
module test {
alias FooBaz := (
SELECT Foo
FILTER Foo.bar = 'baz'
);
}; | test_eschema_syntax_alias_02 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_alias_03(self):
"""
module test {
alias FooBaz := (
SELECT Foo
FILTER Foo.bar = 'baz'
);
};
""" | module test {
alias FooBaz := (
SELECT Foo
FILTER Foo.bar = 'baz'
);
}; | test_eschema_syntax_alias_03 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_alias_04(self):
"""
module test {
alias FooBaz := Foo {
val := 1
baz := .bar + 2
}
);
};
""" | module test {
alias FooBaz := Foo {
val := 1
baz := .bar + 2
}
);
}; | test_eschema_syntax_alias_04 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_alias_05(self):
"""
module test {
alias FooBaz := (1 2);
};
""" | module test {
alias FooBaz := (1 2);
}; | test_eschema_syntax_alias_05 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_alias_06(self):
"""
module test {
alias FooBaz := [1 2];
};
""" | module test {
alias FooBaz := [1 2];
}; | test_eschema_syntax_alias_06 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_annotation_01(self):
"""
module test {
abstract annotation foobar;
};
""" | module test {
abstract annotation foobar;
}; | test_eschema_syntax_annotation_01 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_annotation_03(self):
"""
module test {
abstract annotation foobar extending baz;
};
""" | module test {
abstract annotation foobar extending baz;
}; | test_eschema_syntax_annotation_03 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_annotation_04(self):
"""
module test {
abstract annotation foobar {
title := 'Some title';
};
};
""" | module test {
abstract annotation foobar {
title := 'Some title';
};
}; | test_eschema_syntax_annotation_04 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_annotation_06(self):
"""
module test {
abstract annotation foobar extending baz {
title := 'Some title';
};
};
""" | module test {
abstract annotation foobar extending baz {
title := 'Some title';
};
}; | test_eschema_syntax_annotation_06 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_annotation_08(self):
"""
module test {
abstract annotation foobar extending foo1, foo2;
};
""" | module test {
abstract annotation foobar extending foo1, foo2;
}; | test_eschema_syntax_annotation_08 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_annotation_09(self):
"""
abstract annotation test::foobar extending foo1,
foo2;
""" | abstract annotation test::foobar extending foo1,
foo2; | test_eschema_syntax_annotation_09 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_annotation_10(self):
"""
abstract annotation test::foobar extending foo1,
foo2 {
title := 'Title';
};
""" | abstract annotation test::foobar extending foo1,
foo2 {
title := 'Title';
}; | test_eschema_syntax_annotation_10 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_annotation_11(self):
"""
module test {
abstract annotation as extending foo;
};
""" | module test {
abstract annotation as extending foo;
}; | test_eschema_syntax_annotation_11 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_annotation_12(self):
"""
module test {
abstract inheritable annotation foo;
};
""" | module test {
abstract inheritable annotation foo;
}; | test_eschema_syntax_annotation_12 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
def test_eschema_syntax_annotation_13(self):
"""
module test {
abstract inheritable annotation foo extending bar;
};
""" | module test {
abstract inheritable annotation foo extending bar;
}; | test_eschema_syntax_annotation_13 | python | geldata/gel | tests/test_schema_syntax.py | https://github.com/geldata/gel/blob/master/tests/test_schema_syntax.py | Apache-2.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.