Skip to content

Added test cases for logical types for producer/consumer#74

Merged
adanilenka merged 1 commit intomainfrom
GH-39-test-cases-logical-types
May 14, 2025
Merged

Added test cases for logical types for producer/consumer#74
adanilenka merged 1 commit intomainfrom
GH-39-test-cases-logical-types

Conversation

@adanilenka
Copy link
Collaborator

Issue #39

Test cases for logical types.

What is new:

On the producer's side:

  1. physical type triples got a test for LOGICAL_STREAM_TYPE_GRAPHS
  2. physical type quads and graphs got a test each for LOGICAL_STREAM_TYPE_DATASETS

On the consumer side, each of the tests above is mirrored +

  1. physical type triples got a test for LOGICAL_STREAM_TYPE_SUBJECT_GRAPHS
  2. physical type quads and graphs got a test each for LOGICAL_STREAM_TYPE_NAMED_GRAPHS and LOGICAL_STREAM_TYPE_TIMESTAMPED_NAMED_GRAPHS

Consumer got more tests as specification sets as required only 4 base types (flat types are used extensively by other tests and thus not included again), but expects the implementation to be able to To determine the base type of a logical stream type, the implementation MUST take the last digit of the logical stream type number, which is equivalent to the modulo 10 operation. Therefore, the consumer side got test cases to check if this requirement (understanding base logical types through their subtypes) was satisfied.

@adanilenka adanilenka requested a review from Ostrzyciel May 14, 2025 18:26
Copy link
Member

@Ostrzyciel Ostrzyciel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@adanilenka adanilenka merged commit 3cc8bac into main May 14, 2025
10 checks passed
@adanilenka adanilenka deleted the GH-39-test-cases-logical-types branch May 14, 2025 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants