spectests/

directory
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 13, 2024 License: Apache-2.0

README

XML tests

Uses XML test files imported from https://github.com/cqframework/cql-tests.

XML tests constructs a CQL expression for each test in the following manner from the input XML file:

define <group.Name>_<test.Name>:
  (<expression>) ~ <output>

The CQL strings are then evaluated and checked to see if they return true. If true, then the test passes otherwise the test fails.

The input XML file is expected to match the specifications defined in cql/tests/spectests/cqltests/testSchema.xsd.

How to generate model.go

  • Run
git clone https://github.com/GoComply/xsd2go.git
  • Change the directory
cd go_modules/xsd2go/cli
  • Run
go run ./gocomply_xsd2go convert path/to/testSchema.xsd ./scap path/to/output/dir

Coverage Stats

To output coverage stats of these XML tests navigate to cmd/analyzer for a CLI analysis tool.

Directories

Path Synopsis
cmd
analyzer command
XML Analyzer is a CLI for analyzing engine capabilities vs the external XML tests.
XML Analyzer is a CLI for analyzing engine capabilities vs the external XML tests.
Package exclusions contains the test group and test name exclusions for the XML tests.
Package exclusions contains the test group and test name exclusions for the XML tests.
Code generated by https://github.com/gocomply/xsd2go; DO NOT EDIT.
Code generated by https://github.com/gocomply/xsd2go; DO NOT EDIT.
third_party
cqltests
Package cqltests contains the XML tests from the CQL specification
Package cqltests contains the XML tests from the CQL specification

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL