Add tester and a few tests

This commit is contained in:
Guillaume Gomez 2018-01-07 16:20:25 +01:00
parent 53d8ec0ecb
commit 43acd233b3
8 changed files with 326 additions and 15 deletions

View file

@ -1,4 +1,4 @@
// Copyright 2017 The Rust Project Developers. See the COPYRIGHT
// Copyright 2018 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
@ -10,6 +10,16 @@
const QUERY = 'String';
const EXPECTED = [
{'all': ['std::string::String']},
];
const EXPECTED = {
'others': [
{ 'path': 'std::string', 'name': 'String' },
{ 'path': 'std::ffi', 'name': 'OsString' },
{ 'path': 'std::ffi', 'name': 'CString' },
],
'in_args': [
{ 'path': 'std::str', 'name': 'eq' },
],
'returned': [
{ 'path': 'std::string::String', 'name': 'add' },
],
};