The es_ccc function is a specialized generator within the mock-jutsu library designed to produce realistic Spanish bank account numbers, historically known as the Código Cuenta Corriente (CCC). This identifier is essential for developers working on financial applications, payment gateways, or ERP systems targeting the Spanish market. By using es_ccc, engineering teams can generate high-quality mock data that mimics the exact structure of real-world banking identifiers, ensuring that software components can process and validate Spanish financial information without the need for sensitive production data.
Every string generated by the es_ccc function adheres to the strict 20-digit format required by Spanish banking standards. The output consists of four distinct segments: a four-digit bank entity code, a four-digit office or branch code, two control digits, and a ten-digit account number. To ensure the generated test data is functionally valid, mock-jutsu implements the standard MOD-11 checksum algorithm. This mathematical validation ensures that the two control digits correctly correspond to the preceding bank and branch codes and the subsequent account number, allowing the generated strings to pass through rigorous validation logic in both front-end forms and back-end databases.
Integrating es_ccc into your development lifecycle is seamless across various environments. For developers working in a terminal, the CLI command "mockjutsu generate es_ccc" provides immediate results for manual testing or shell scripting. Python developers can easily incorporate this into their automated testing suites or data-seeding scripts using the jutsu.generate('es_ccc') method. Furthermore, for performance and load testing, the library provides a JMeter function, ${__mockjutsu(es_ccc,)}, which allows QA engineers to inject valid Spanish bank identifiers into high-concurrency test scenarios. This flexibility makes mock-jutsu a versatile tool for maintaining high test coverage across the entire software development life cycle.
Utilizing the es_ccc function also helps organizations maintain strict data privacy and GDPR compliance by replacing real customer information with synthetic test data. Whether you are testing edge cases in a billing engine or verifying the UI layout of a banking dashboard, having access to mathematically accurate mock data is critical for reducing bugs and deployment risks. By choosing mock-jutsu, developers gain a reliable resource for generating structurally sound Spanish bank account numbers that look, feel, and behave like real data, ensuring a robust and reliable user experience for financial applications.
mockjutsu generate es_cccmockjutsu bulk es_ccc --count 10mockjutsu export es_ccc --count 10 --format jsonmockjutsu export es_ccc --count 10 --format csvmockjutsu export es_ccc --count 10 --format sql# --mask: regulation-compliant output (PCI DSS / GDPR / KVKK)mockjutsu generate es_ccc --maskmockjutsu bulk es_ccc --count 5 --maskfrom mockjutsu import jutsujutsu.generate('es_ccc')jutsu.bulk('es_ccc', count=10)jutsu.template(['es_ccc'], count=5)# mask=True: regulation-compliant outputjutsu.generate('es_ccc', mask=True)jutsu.bulk('es_ccc', count=5, mask=True)${__mockjutsu_intl_ids(es_ccc)}# JMeter Function: __mockjutsu_intl_ids# Parameter 1: es_ccc# Parameter 2: (not required for this function)# Add 'mask' keyword to get a regulation-compliant masked value${__mockjutsu_intl_ids(es_ccc,mask)}GET /generate/es_ccc# → {"type":"es_ccc","result":"...","status":"ok"}GET /bulk/es_ccc?count=10POST /template {"types":["es_ccc"],"count":1}# mask=true: regulation-compliant outputGET /generate/es_ccc?mask=trueGET /bulk/es_ccc?count=5&mask=true| Parameter | Values | Description |
|---|---|---|
| --mask | true | false | Return a regulation-compliant masked value (PCI DSS, GDPR, KVKK…) |