作为bash脚本的一部分,我想检查码头集线器上是否存在一个特别的对接者映像:标签组合。而且,它将是一个私有存储库。也就是说,伪码就像:if image:tag already exists on docker hub:else
Build andpush docker image with that tag
标签部分看起来像:tag1, tag2, tag42。因此,例如,我想从tags中包含tag42或tag2的行中随机选择一行。一些伪代码:
SELECT * FROM tbl ORDER BY RAND() WHERE tags LIKE '%tag42%' OR '%tags2%' LIMIT 1。
我根据静态文本的标识符和标签文本值测试了它的断言。我试着用这个代码来测试基于标签文本、值、标识符的静态文本。 XCTAssert(app.staticTexts["id1"].exists)
//this "Label" have the tagvalue 1 , So how can I check l
所以我使用的是acts_as_taggable gem提供的标签。这些帖子就是我要标记的。我怎么能说出像=>这样的东西(这里的伪代码)呢?if a collection of Posts has a tag with a corresponding StockQuote, display the stock quoteelseend
因此,