File: test_output_multi_line_trivial.lua

package info (click to toggle)
osm2pgsql 1.4.1%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 5,124 kB
  • sloc: cpp: 41,466; ansic: 1,366; python: 564; sh: 19; makefile: 15
file content (10 lines) | stat: -rw-r--r-- 323 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
function drop_all (...)
  return 1, {}
end

-- A generic way to process ways, given a function which determines if tags are interesting
-- Takes an optional function to process tags. Always says it's a polygon if there's matching tags
function test_ways (kv, num_keys)
  tags = {["foo"] = "bar"}
  return 0, tags, 1, 0
end