Code coverage for Solidity smart-contracts
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
solidity-coverage/test/units/expressions.js

29 lines
1.1 KiB

const assert = require('assert');
const util = require('./../util/util.js');
describe('generic expressions / misc', () => {
it('should compile after instrumenting a single binary expression', () => {
const info = util.instrumentAndCompile('expressions/single-binary-expression');
util.report(info.solcOutput.errors);
});
it('should compile after instrumenting a new expression', () => {
const info = util.instrumentAndCompile('expressions/new-expression');
util.report(info.solcOutput.errors);
});
it('should compile after instrumenting function that returns true', () => {
const info = util.instrumentAndCompile('return/return');
util.report(info.solcOutput.errors);
});
it('should compile after instrumenting function that returns void', () => {
const info = util.instrumentAndCompile('return/empty-return');
util.report(info.solcOutput.errors);
});
it('should compile after instrumenting function that returns via ternary conditional', () => {
const info = util.instrumentAndCompile('return/ternary-return');
util.report(info.solcOutput.errors);
});
});