# Path: sampletester/inputs.py
# def untyped_yaml_resolver(unknown_doc: parser.Document) -> str :
# def index_docs(*file_patterns: str) -> parser.IndexedDocs:
#   def log_files(indexed_files):
# def create_indexed_docs(*all_paths: Set[str]) -> parser.IndexedDocs:
# def get_globbed(*file_patterns: str) -> Set[str]:
# 
# Path: sampletester/parser.py
# SCHEMA_TYPE_KEY = 'type'
# SCHEMA_TYPE_ABSENT = '(no type)' # for indexing docs with no SCHEMA_TYPE_KEY
# SCHEMA_TYPE_SEPARATOR = '/'
# SCHEMA_VERSION_KEY = 'schema_version'
# class SchemaDescriptor:
# class IndexedDocs(object):
# class YamlDocSyntaxError(Exception):
#   def __post_init__(self) -> str:
#   def has_version(self) -> bool:
#   def __init__(self,
#                strict: bool = False,
#                resolver: Callable[[Document], str] = None):
#   def contains(self, *type_names: str) -> bool:
#   def from_files(self, *paths: str):
#   def from_strings(self, *sources: Tuple[str, str]):
#   def add(self, content:str, file_name: str):
#   def add_documents(self, *documents: Document):
#   def of_type(self, type_name: str) -> List[Document]:
#   def resolve_uncategorized(self):
# def only_files_in(paths: Iterable[str]) -> Set[str]:


import os
import unittest
from contextlib import contextmanager
from sampletester import inputs
from sampletester import parser
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.




_ABS_FILE = os.path.abspath(__file__)
_ABS_DIR = os.path.dirname(_ABS_FILE)

class TestInputs(unittest.TestCase):
  def test_untyped_yaml_resolver(self):
    self.assertEquals(inputs.MANIFEST_SCHEMA.primary_type,
                      inputs.untyped_yaml_resolver(
                          parser.Document('/my/path/to/some.manifest.yaml', None)))

# Path: sampletester/inputs.py
# def untyped_yaml_resolver(unknown_doc: parser.Document) -> str :
# def index_docs(*file_patterns: str) -> parser.IndexedDocs:
#   def log_files(indexed_files):
# def create_indexed_docs(*all_paths: Set[str]) -> parser.IndexedDocs:
# def get_globbed(*file_patterns: str) -> Set[str]:
# 
# Path: sampletester/parser.py
# SCHEMA_TYPE_KEY = 'type'
# SCHEMA_TYPE_ABSENT = '(no type)' # for indexing docs with no SCHEMA_TYPE_KEY
# SCHEMA_TYPE_SEPARATOR = '/'
# SCHEMA_VERSION_KEY = 'schema_version'
# class SchemaDescriptor:
# class IndexedDocs(object):
# class YamlDocSyntaxError(Exception):
#   def __post_init__(self) -> str:
#   def has_version(self) -> bool:
#   def __init__(self,
#                strict: bool = False,
#                resolver: Callable[[Document], str] = None):
#   def contains(self, *type_names: str) -> bool:
#   def from_files(self, *paths: str):
#   def from_strings(self, *sources: Tuple[str, str]):
#   def add(self, content:str, file_name: str):
#   def add_documents(self, *documents: Document):
#   def of_type(self, type_name: str) -> List[Document]:
#   def resolve_uncategorized(self):
# def only_files_in(paths: Iterable[str]) -> Set[str]:


# Path: tests/inputs_test.py
import os
import unittest
from contextlib import contextmanager
from sampletester import inputs
from sampletester import parser

# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.




_ABS_FILE = os.path.abspath(__file__)
_ABS_DIR = os.path.dirname(_ABS_FILE)

class TestInputs(unittest.TestCase):
  def test_untyped_yaml_resolver(self):
    self.assertEquals(inputs.MANIFEST_SCHEMA.primary_type,
                      inputs.untyped_yaml_resolver(
                          parser.Document('/my/path/to/some.manifest.yaml', None)))

    self.assertEquals(inputs.TESTPLAN_SCHEMA.primary_type,