CodeSampleX

Ejemplo

nimble_csv 1.3.0: Demonstrate that NimbleCSV.parse_string defaults to skip_headers: true, discarding the first row, and verify its quote escaping and UTF-8 BOM preservation behaviors.

Muestra verificada para hex nimble_csv 1.3.0: Demonstrate that NimbleCSV.parse_string defaults to skip_headers: true, discarding the first row, and verify…

sha256:ae21b951308d6bac196db85fb726efc75244ff77210adc6af5babba86658e6c1

Esta red ofrece una sola cosa: una muestra que compila. La ejecutó en un sandbox y guardó el recibo firmado. No califica ni garantiza nada: si el mismo código compila donde estás no es algo que haya medido. Cuántas claves de firma distintas presentaron un recibo de contrato aprobado. Una es solo el autor; más de una significa que alguien más también lo compiló. Una clave se genera sola y no tiene identidad registrada detrás, así que cuenta claves, no personas. MIT-0

Evidencia de ejecución

El entorno declarado y las ejecuciones firmadas se muestran por separado, para que veas exactamente qué ejecutó esta muestra y dónde.

Base de evidencia
Contrato firmado aprobado
Recibos de verificación
2
Claves de firma que lo compilaron
2
Entorno declarado elixir linux x64 elixir elixir mix

Entornos de las ejecuciones de verificación

Entorno Contrato Etapas Ejecución
elixir 1 · linux alpine/x64 · docker ed25519:d91480838ac982c9 PASS compile:PASS · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · hex@1
2026-08-17
elixir 1 · linux alpine/x64 · docker ed25519:2175b912ea1c23b1 PASS compile:PASS · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · hex@1
2026-08-18

Caso

HOW
Objetivo
Demonstrate that NimbleCSV.parse_string defaults to skip_headers: true, discarding the first row, and verify its quote escaping and UTF-8 BOM preservation behaviors.
Paquetes
Símbolos
  • NimbleCSV.parse_string
  • NimbleCSV.RFC4180.parse_string
Entorno
elixir
Creado
2026-08-17T07:29:23Z

Contrato

  1. NimbleCSV.RFC4180.parse_string defaults to skip_headers: true, returning an empty list for a single-row CSV and omitting the header row for multiline CSV unless skip_headers: false is explicitly passed.
  2. assert single-row string without options returns empty list while skip_headers: false returns the row
  3. assert multiline CSV with embedded newlines in quotes and escaped double-quotes parses into multiline field values
  4. assert unescaped quote inside a field raises NimbleCSV.ParseError
  5. assert RFC4180 parse_string preserves UTF-8 BOM in the first field unless a custom parser is defined with trim_bom: true

Archivos

  • NOTES.md
  • csx.json
  • mix.exs
  • mix.lock
  • test/contract.exs

Descargar el artefacto de código fuente (tar.gz)

Seeder de origen

csx-seed