mirror of
https://github.com/KLayout/klayout.git
synced 2026-08-30 09:49:21 +02:00
Added tests for GSI binding of dbNetlistCompare
This commit is contained in:
@@ -39,6 +39,10 @@ Class<db::Pin> decl_dbPin ("db", "Pin",
|
||||
) +
|
||||
gsi::method ("name", &db::Pin::name,
|
||||
"@brief Gets the name of the pin.\n"
|
||||
) +
|
||||
gsi::method ("expanded_name", &db::Pin::expanded_name,
|
||||
"@brief Gets the expanded name of the pin.\n"
|
||||
"The expanded name is the name or a generic identifier made from the ID if the name is empty."
|
||||
),
|
||||
"@brief A pin of a circuit.\n"
|
||||
"Pin objects are used to describe the outgoing pins of "
|
||||
@@ -1010,6 +1014,11 @@ Class<db::Netlist> decl_dbNetlist ("db", "Netlist",
|
||||
"@brief Converts the netlist to a string representation.\n"
|
||||
"This method is intended for test purposes mainly."
|
||||
) +
|
||||
gsi::method ("from_s", &db::Netlist::from_string, gsi::arg ("str"),
|
||||
"@brief Reads the netlist from a string representation.\n"
|
||||
"This method is intended for test purposes mainly. It turns a string returned by \\to_s back into "
|
||||
"a netlist. Note that the device classes must be created before as they are not persisted inside the string."
|
||||
) +
|
||||
gsi::method ("combine_devices", &db::Netlist::combine_devices,
|
||||
"@brief Combines devices where possible\n"
|
||||
"This method will combine devices that can be combined according "
|
||||
|
||||
@@ -296,11 +296,10 @@ public:
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
namespace gsi
|
||||
{
|
||||
|
||||
Class<GenericNetlistCompareLogger> decl_GenericNetlistCompareLogger (decl_GenericNetlistCompareLogger, "db", "GenericNetlistCompareLogger",
|
||||
Class<GenericNetlistCompareLogger> decl_GenericNetlistCompareLogger ("db", "GenericNetlistCompareLogger",
|
||||
gsi::callback ("begin_netlist", &GenericNetlistCompareLogger::begin_netlist, &GenericNetlistCompareLogger::cb_begin_netlist, gsi::arg ("a"), gsi::arg ("b"),
|
||||
"@brief This function is called at the beginning of the compare process.\n"
|
||||
"This method is called once when the compare run begins.\n"
|
||||
@@ -401,13 +400,13 @@ Class<GenericNetlistCompareLogger> decl_GenericNetlistCompareLogger (decl_Generi
|
||||
"This class has been introduced in version 0.26.\n"
|
||||
);
|
||||
|
||||
db::NetlistComparer *make_comparer (db::NetlistCompareLogger *logger)
|
||||
static db::NetlistComparer *make_comparer (GenericNetlistCompareLogger *logger)
|
||||
{
|
||||
return new db::NetlistComparer (logger);
|
||||
}
|
||||
|
||||
Class<db::NetlistComparer> decl_dbNetlistComparer ("db", "NetlistComparer",
|
||||
gsi::constructor ("new", &make_comparer, gsi::arg ("logger", (db::NetlistCompareLogger *) 0),
|
||||
gsi::constructor ("new", &make_comparer, gsi::arg ("logger", (GenericNetlistCompareLogger *) 0),
|
||||
"@brief Creates a new comparer object."
|
||||
"The logger is a delegate or event receiver which the comparer will send compare events to. "
|
||||
"See the class description for more details."
|
||||
|
||||
@@ -113,6 +113,7 @@ RUBYTEST (dbMatrix, "dbMatrix.rb")
|
||||
RUBYTEST (dbNetlist, "dbNetlist.rb")
|
||||
RUBYTEST (dbNetlistDeviceClasses, "dbNetlistDeviceClasses.rb")
|
||||
RUBYTEST (dbNetlistWriterTests, "dbNetlistWriterTests.rb")
|
||||
RUBYTEST (dbNetlistCompare, "dbNetlistCompare.rb")
|
||||
RUBYTEST (dbPathTest, "dbPathTest.rb")
|
||||
RUBYTEST (dbPCells, "dbPCells.rb")
|
||||
RUBYTEST (dbPointTest, "dbPointTest.rb")
|
||||
|
||||
Reference in New Issue
Block a user