mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
CLI tests for metadata output
This commit is contained in:
parent
e6b1f5ccee
commit
e45e6cc31d
1
test/cmdlineTests/metadata/args
Normal file
1
test/cmdlineTests/metadata/args
Normal file
@ -0,0 +1 @@
|
|||||||
|
--metadata
|
4
test/cmdlineTests/metadata/input.sol
Normal file
4
test/cmdlineTests/metadata/input.sol
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
// SPDX-License-Identifier: GPL-3.0
|
||||||
|
pragma solidity *;
|
||||||
|
|
||||||
|
contract C {}
|
4
test/cmdlineTests/metadata/output
Normal file
4
test/cmdlineTests/metadata/output
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
|
||||||
|
======= metadata/input.sol:C =======
|
||||||
|
Metadata:
|
||||||
|
{"compiler":{"version": "<VERSION REMOVED>"},"language":"Solidity","output":{"abi":[],"devdoc":{"kind":"dev","methods":{},"version":1},"userdoc":{"kind":"user","methods":{},"version":1}},"settings":{"compilationTarget":{"metadata/input.sol":"C"},"evmVersion":"shanghai","libraries":{},"metadata":{"bytecodeHash":"ipfs"},"optimizer":{"enabled":false,"runs":200},"remappings":[]},"sources":{"metadata/input.sol":{"keccak256":"0x5cf617b1707a484e3c4bd59643013dec76ab7d75900b46855214729ae3e0ceb0","license":"GPL-3.0","urls":["bzz-raw://ac418a02dfadf87234150d3568f33269e3f49460345cb39300e017a6d755eff2","dweb:/ipfs/QmQq3owBu25x2WV46HB1WyKzJpxiAPecU7eMKqtXCF7eeS"]}},"version":1}
|
1
test/cmdlineTests/standard_metadata/args
Normal file
1
test/cmdlineTests/standard_metadata/args
Normal file
@ -0,0 +1 @@
|
|||||||
|
--allow-paths .
|
4
test/cmdlineTests/standard_metadata/in.sol
Normal file
4
test/cmdlineTests/standard_metadata/in.sol
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
// SPDX-License-Identifier: GPL-3.0
|
||||||
|
pragma solidity *;
|
||||||
|
|
||||||
|
contract C {}
|
11
test/cmdlineTests/standard_metadata/input.json
Normal file
11
test/cmdlineTests/standard_metadata/input.json
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
{
|
||||||
|
"language": "Solidity",
|
||||||
|
"sources": {
|
||||||
|
"C": {"urls": ["standard_metadata/in.sol"]}
|
||||||
|
},
|
||||||
|
"settings": {
|
||||||
|
"outputSelection": {
|
||||||
|
"*": {"*": ["metadata"]}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
19
test/cmdlineTests/standard_metadata/output.json
Normal file
19
test/cmdlineTests/standard_metadata/output.json
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
{
|
||||||
|
"contracts":
|
||||||
|
{
|
||||||
|
"C":
|
||||||
|
{
|
||||||
|
"C":
|
||||||
|
{
|
||||||
|
"metadata": "{\"compiler\":{\"version\":\"<VERSION REMOVED>\"},\"language\":\"Solidity\",\"output\":{\"abi\":[],\"devdoc\":{\"kind\":\"dev\",\"methods\":{},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"C\":\"C\"},\"evmVersion\":\"shanghai\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\"},\"optimizer\":{\"enabled\":false,\"runs\":200},\"remappings\":[]},\"sources\":{\"C\":{\"keccak256\":\"0x5cf617b1707a484e3c4bd59643013dec76ab7d75900b46855214729ae3e0ceb0\",\"license\":\"GPL-3.0\",\"urls\":[\"bzz-raw://ac418a02dfadf87234150d3568f33269e3f49460345cb39300e017a6d755eff2\",\"dweb:/ipfs/QmQq3owBu25x2WV46HB1WyKzJpxiAPecU7eMKqtXCF7eeS\"]}},\"version\":1}"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"sources":
|
||||||
|
{
|
||||||
|
"C":
|
||||||
|
{
|
||||||
|
"id": 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user