MCPcopy Create free account
hub / github.com/alibaba/GraphScope / func

Function func

python/graphscope/tests/conftest.py:890–930  ·  view source on GitHub ↗
(g)

Source from the content-addressed store, hash-verified

888@pytest.fixture(scope="module")
889def modern_bytecode():
890 def func(g):
891 from gremlin_python.process.traversal import Order
892 from gremlin_python.process.traversal import P
893
894 assert g.V().has("name", "marko").count().toList()[0] == 1
895 assert g.V().has("person", "name", "marko").count().toList()[0] == 1
896 assert (
897 g.V().has("person", "name", "marko").outE("created").count().toList()[0]
898 == 1
899 )
900 assert (
901 g.V()
902 .has("person", "name", "marko")
903 .outE("created")
904 .inV()
905 .count()
906 .toList()[0]
907 == 1
908 )
909 assert (
910 g.V().has("person", "name", "marko").out("created").count().toList()[0] == 1
911 )
912 assert (
913 g.V()
914 .has("person", "name", "marko")
915 .out("created")
916 .values("name")
917 .count()
918 .toList()[0]
919 == 1
920 )
921 assert (
922 g.V()
923 .hasLabel("person")
924 .has("age", P.gt(30))
925 .order()
926 .by("age", Order.desc)
927 .count()
928 .toList()[0]
929 == 2
930 )
931
932 return func
933

Callers 15

parallel_transactionFunction · 0.85
parallel_clientFunction · 0.85
ScanVerticesMethod · 0.85
ApplyMethod · 0.85
transform_array_implFunction · 0.85
transform_tuple_implFunction · 0.85
apply_on_tuple_implFunction · 0.85
apply_array_implFunction · 0.85
apply_tuple_implFunction · 0.85
foreach_edges_betweenMethod · 0.85
foreach_edges_gtMethod · 0.85

Calls 10

toListMethod · 0.80
hasMethod · 0.80
outEMethod · 0.80
byMethod · 0.80
hasLabelMethod · 0.80
countMethod · 0.65
VMethod · 0.45
outMethod · 0.45
valuesMethod · 0.45
orderMethod · 0.45

Tested by

no test coverage detected