コード例 #1
0
	def GetExpectedBlocksAfterStrip(cls):
		counter = Counter()
		counter.AddType(StartOfDocumentBlock, 1)
		counter.AddType(Package.NameBlock, 39)
		counter.AddType(Package.EndBlock, 32)
		counter.AddType(EndOfDocumentBlock, 1)
		return counter
コード例 #2
0
 def GetExpectedBlocksAfterStrip(cls):
     counter = Counter()
     counter.AddType(StartOfDocumentBlock, 1)
     counter.AddType(Architecture.NameBlock, 63)
     counter.AddType(Architecture.BeginBlock, 27)
     counter.AddType(Architecture.EndBlock, 36)
     counter.AddType(EndOfDocumentBlock, 1)
     return counter
コード例 #3
0
 def GetExpectedBlocksAfterStrip(cls):
     counter = Counter()
     counter.AddType(StartOfDocumentBlock, 1)
     counter.AddType(StartBlock, 10)
     counter.AddType(ReferenceNameBlock, 17)
     counter.AddType(DelimiterBlock, 3)
     counter.AddType(EndBlock, 10)
     counter.AddType(EndOfDocumentBlock, 1)
     return counter
コード例 #4
0
ファイル: LibraryTest.py プロジェクト: Paebbels/pyVHDLParser
 def GetExpectedBlocksAfterStrip(cls):
     pass
     counter = Counter()
     counter.AddType(StartOfDocumentBlock, 1)
     counter.AddType(Library.StartBlock, 11)
     counter.AddType(Library.LibraryNameBlock, 14)
     counter.AddType(Library.DelimiterBlock, 3)
     counter.AddType(Library.EndBlock, 11)
     counter.AddType(EndOfDocumentBlock, 1)
     return counter
コード例 #5
0
	def GetExpectedBlocksAfterStrip(cls):
		counter = Counter()
		counter.AddType(StartOfDocumentBlock, 1)
		counter.AddType(Entity.NameBlock, 9)
		counter.AddType(PortList.OpenBlock, 9)
		counter.AddType(pyVHDLParser.Blocks.InterfaceObject.InterfaceSignalBlock, 13)
		counter.AddType(PortList.DelimiterBlock, 4)
		counter.AddType(PortList.CloseBlock, 9)
		counter.AddType(Entity.EndBlock, 9)
		counter.AddType(EndOfDocumentBlock, 1)
		return counter
コード例 #6
0
ファイル: ProcessTest.py プロジェクト: cmarqu/pyVHDLParser
 def GetExpectedBlocksAfterStrip(cls):
     counter = Counter()
     counter.AddType(StartOfDocumentBlock, 1)
     counter.AddType(Architecture.NameBlock, 1)
     counter.AddType(Architecture.BeginBlock, 1)
     counter.AddType(Process.OpenBlock, 7)
     counter.AddType(Process.OpenBlock2, 2)
     counter.AddType(SensitivityList.OpenBlock, 7)
     counter.AddType(SensitivityList.ItemBlock, 8)
     counter.AddType(SensitivityList.DelimiterBlock, 1)
     counter.AddType(SensitivityList.CloseBlock, 7)
     counter.AddType(Process.BeginBlock, 7)
     counter.AddType(Process.EndBlock, 7)
     counter.AddType(Architecture.EndBlock, 1)
     counter.AddType(EndOfDocumentBlock, 1)
     return counter