@@ -1152,11 +1152,29 @@ function blobsStoresTestBlock!(fg)
1152
1152
# Getting
1153
1153
data = getData (fg, fs, :a , :testing ) # convenience wrapper over getBlob
1154
1154
@test data[1 ]. hash == newData. hash # [1]
1155
+ # more dispatches
1156
+ data = getData (fg, :a , :testing ) # convenience wrapper over getBlob
1157
+ @test data[1 ]. hash == newData. hash # [1]
1158
+ data = getData (fg, :a , " testing" ) # convenience wrapper over getBlob
1159
+ @test data[1 ]. hash == newData. hash # [1]
1160
+ data = getData (fg, :a , r" testing" ) # convenience wrapper over getBlob
1161
+ @test data[1 ]. hash == newData. hash # [1]
1162
+ be = getBlobEntry (fg, :a , r" testing" )
1163
+ data = getData (fg, :a , be. originId) # convenience wrapper over getBlob
1164
+ @test data[1 ]. hash == newData. hash # [1]
1155
1165
# @test data[2] == newData[2]
1156
1166
# Updating
1157
1167
updateData = updateData! (fg, fs, :a , newData, rand (UInt8, 50 )) # convenience wrapper around updateBlob!
1158
1168
@test updateData[1 ]. hash != data[1 ]. hash
1159
1169
@test updateData[2 ] != data[2 ]
1170
+ @show bllb = DistributedFactorGraphs. incrDataLabelSuffix (fg, :a , :testing )
1171
+ newData2 = addData! (fg, fs. key, :a , bllb, testData) # convenience wrapper over addBlob!
1172
+ nbe = listBlobEntries (fg, :a )
1173
+ filter! (s-> occursin (r" testing" ,string (s)), nbe)
1174
+ @test 2 == length (nbe)
1175
+ # TODO : incrSuffix when adding repeat labels, e.g. :testing_1, :testing_2
1176
+ data2 = getData (fg, :a , :testing )
1177
+ data3 = getData (fg, :a , bllb)
1160
1178
# Deleting
1161
1179
return retData = deleteData! (fg, :a , :testing ) # convenience wrapper around deleteBlob!
1162
1180
end
0 commit comments