question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

.yaml test Filler format

See original GitHub issue

I’ve studied yaml format and could tell that a test format could look like this:

#description of a test
---
add12:
  env:
    currentCoinbase: 2adc25665018aa1fe0e6bc666dac8fc2697ff9ba
    currentDifficulty: '0x20000'
    currentGasLimit: '1000000'
    currentNumber: '1'
    currentTimestamp: '1000'
    previousHash: 5e20a0453cecd065ea59c37ac63e079ee08998b6045136a8ce6635c7912ec0b6
  expect:
  - indexes:
      data: !!int -1
      gas: !!int -1
      value: !!int -1
    network:
    - ALL
    result:
      #explanation why we expect such a result here
      095e7baea6a6c7c4c2dfeb977efac326af552d87:
        balance: '1000000000000100000'
        code: '0x6001600101600055'
        storage:
          0x: '0x02'
      2adc25665018aa1fe0e6bc666dac8fc2697ff9ba:
        balance: '41012'
        code: 0x
        nonce: '0'
        storage: {}
      a94f5374fce5edbc8e2a8697c15331677e6ebf0b:
        balance: '999999999999858988'
        code: 0x
        nonce: '1'
        storage: {}
  pre:
    095e7baea6a6c7c4c2dfeb977efac326af552d87:
      balance: '1000000000000000000'
      code: '0x6001600101600055'
      nonce: '0'
      storage: {}
    a94f5374fce5edbc8e2a8697c15331677e6ebf0b:
      balance: '1000000000000000000'
      code: >-
         multiline solididy 
         or whatever code here
      nonce: '0'
      storage: {}
  transaction:
    data:
    #description of a data field
    - ''
    gasLimit:
    - '400000'
    gasPrice: '1'
    nonce: '0'
    secretKey: 45a915e4d060149eb4365960e6a7a45f334393093061116b197e3240065ff2d8
    to: 095e7baea6a6c7c4c2dfeb977efac326af552d87
    value:
    - '100000'

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
winsvegacommented, Dec 15, 2017
code: >- 
                0x6001600101600055
                003344556633a234
- code: >-
             Some July code here
             and even more code here
0reactions
winsvegacommented, May 10, 2018

Implemented

Read more comments on GitHub >

github_iconTop Results From Across the Web

YAML Tutorial: Everything You Need to Get Started in Minutes
This YAML tutorial will demonstrate the language syntax with a guide and some simple coding examples ... Our test program processes this as:...
Read more >
3 YAML tips for better pipelines - GitLab
YAML tip #2: Keep it simple ... It's easy to overwhelm the minimalism of a YAML file by including too many details, or...
Read more >
Introduction to YAML: Creating a Kubernetes deployment
YAML is a human-readable text-based format that lets you easily specify configuration-type information by using a combination of maps of name- ...
Read more >
Platform.yaml file format - AWS Elastic Beanstalk
Platform.yaml file format. PDF. The platform.yaml file has the following format. version: " version-number " provisioner: type: provisioner-type template: ...
Read more >
The state of config file formats: XML vs. YAML vs. JSON vs. HCL
Disadvantages of YAML · Indentation format is prone to syntax and validation errors. · Portability with certain types may not exist due to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found