Home | History | Annotate | Download | only in jsontestrunner

Lines Matching full:path

44 readInputTestFile( const char *path )
46 FILE *file = fopen( path, "rb" );
63 printValueTree( FILE *fout, Json::Value &value, const std::string &path = "." )
68 fprintf( fout, "%s=null\n", path.c_str() );
71 fprintf( fout, "%s=%s\n", path.c_str(), Json::valueToString( value.asLargestInt() ).c_str() );
74 fprintf( fout, "%s=%s\n", path.c_str(), Json::valueToString( value.asLargestUInt() ).c_str() );
77 fprintf( fout, "%s=%s\n", path.c_str(), normalizeFloatingPointStr(value.asDouble()).c_str() );
80 fprintf( fout, "%s=\"%s\"\n", path.c_str(), value.asString().c_str() );
83 fprintf( fout, "%s=%s\n", path.c_str(), value.asBool() ? "true" : "false" );
87 fprintf( fout, "%s=[]\n", path.c_str() );
93 printValueTree( fout, value[index], path + buffer );
99 fprintf( fout, "%s={}\n", path.c_str() );
102 std::string suffix = *(path.end()-1) == '.' ? "" : ".";
108 printValueTree( fout, value[name], path + suffix + name );
173 removeSuffix( const std::string &path,
176 if ( extension.length() >= path.length() )
178 std::string suffix = path.substr( path.length() - extension.length() );
181 return path.substr( 0, path.length() - extension.length() );
207 Json::Features &features, std::string &path,
235 path = argv[index];
242 std::string path;
245 int exitCode = parseCommandLine( argc, argv, features, path, parseOnly );
253 std::string input = readInputTestFile( path.c_str() );
256 printf( "Failed to read input or empty input: %s\n", path.c_str() );
263 printf( "Bad input path. Path does not end with '.expected':\n%s\n", path.c_str() );