KScript docs
EN

Built-in API gaps

Behavior to verify

  • HTTP retries share one timeout budget. A retry is allowed for GET, HEAD and OPTIONS on a connection failure or status 408, 429, 502, 503, or 504. The HTTP stub is restored when its callback returns or throws.
  • Byte APIs exchange base64 values. CSV handles quoted cells and multiline fields. Header rows produce maps, which can be validated with as:.
  • Cache reservation replaces expired entries. Named groups use their own namespace. Clearing a group leaves other groups and ungrouped entries alone.
  • Cursor pagination requires a unique, non-null column. It returns next only if another page exists. Bulk inserts commit together or roll back together. Upsert returns the database provider's affected-row count.
  • Clock and environment overrides are scoped to @now(), @today(), @env(), and $env in the test callback.
  • The language regression script covers collection, file, HTTP, cache, and test APIs. The data sample test exercises upsert, cursor pagination, and table descriptions.