# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.

from pysa import _test_source, _test_sink

def cross_repository_source(source_parameter):
    _test_sink(source_parameter)


def returns_crtex_source():
    pass


def reaches_crtex_sink(x):
    pass


def test():
    s = returns_crtex_source()
    _test_sink(s)


def cross_repository_anchor_sink(sink_parameter):
    pass


def test_cross_repository_anchor():
    source = _test_source()
    cross_repository_anchor_sink(source)


def test_propagate_cross_repository_source_once():
    return returns_crtex_source()


def test_propagate_cross_repository_source_twice():
    return test_propagate_cross_repository_source_once()


def test_propagate_cross_repository_sink_once(y):
    reaches_crtex_sink(y)


def test_propagate_cross_repository_sink_twice(z):
    test_propagate_cross_repository_sink_once(z)


class TestDSLAnchor:
    def foo(self, crtex_a, other_b, *args, **kwargs):
        pass

    def bar(self, crtex_b, yet_another_c):
        pass
