test: add glob pattern tests to sqlpath.Glob by eduardolat · Pull Request #2995 · sqlc-dev/sqlc

This Pull Request enhances the sqlpath package by adding new tests for the Glob function, focusing on its ability to handle special pattern characters such as *, ?, [, and ]

Changes:

  • Tests for * Pattern: Ensuring Glob correctly identifies SQL files in subdirectories matching a specified pattern.

  • Tests for ? Character: Verifying Glob's functionality with patterns containing ?, representing a single unknown character.

  • Tests for [ and ] Characters: Assessing Glob's ability to filter files using character ranges.